Click or drag to resize

CompilationGetAssemblyOrModuleSymbol Method



Gets the IAssemblySymbol or IModuleSymbol for a metadata reference used to create this compilation.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public ISymbol GetAssemblyOrModuleSymbol(
	MetadataReference reference
)

Parameters

reference
Type: Microsoft.CodeAnalysisMetadataReference
The target reference.

Return Value

Type: ISymbol
Assembly or module symbol corresponding to the given reference or null if there is none.
See Also