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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.