Compilation.GetAssemblyOrModuleSymbol(MetadataReference) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.