Click or drag to resize

CSharpCompilationReplaceReference Method



Creates a new compilation with an old metadata reference replaced with a new metadata reference.

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public CSharpCompilation ReplaceReference(
	MetadataReference oldReference,
	MetadataReference newReference
)

Parameters

oldReference
Type: Microsoft.CodeAnalysisMetadataReference
newReference
Type: Microsoft.CodeAnalysisMetadataReference

Return Value

Type: CSharpCompilation
See Also