Share via


Compilation.GetAssemblyOrModuleSymbol(MetadataReference) Method

Definition

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

public:
 Microsoft::CodeAnalysis::ISymbol ^ GetAssemblyOrModuleSymbol(Microsoft::CodeAnalysis::MetadataReference ^ reference);
public Microsoft.CodeAnalysis.ISymbol GetAssemblyOrModuleSymbol (Microsoft.CodeAnalysis.MetadataReference reference);
public Microsoft.CodeAnalysis.ISymbol? GetAssemblyOrModuleSymbol (Microsoft.CodeAnalysis.MetadataReference reference);
member this.GetAssemblyOrModuleSymbol : Microsoft.CodeAnalysis.MetadataReference -> Microsoft.CodeAnalysis.ISymbol
Public Function GetAssemblyOrModuleSymbol (reference As MetadataReference) As ISymbol

Parameters

reference
MetadataReference

The target reference.

Returns

Assembly or module symbol corresponding to the given reference or null if there is none.

Applies to