MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​Code­ModelSymbol­ExtensionsGet­Symbol
Open sandboxFocus

SymbolExtensions.GetSymbol Method

GetSymbol(IDeclaration)

Declaration
public static ISymbol GetSymbol(this IDeclaration declaration)
Parameters
Type Name Description
IDeclaration declaration
Returns
Type Description
Microsoft.CodeAnalysis.ISymbol

GetSymbol(IRef<ICompilationElement>, Compilation, Boolean)

Declaration
public static ISymbol GetSymbol(this IRef<ICompilationElement> declaration, Compilation compilation, bool ignoreAssemblyKey = false)
Parameters
Type Name Description
IRef<ICompilationElement> declaration
Microsoft.CodeAnalysis.Compilation compilation
System.Boolean ignoreAssemblyKey
Returns
Type Description
Microsoft.CodeAnalysis.ISymbol

GetSymbol(IType)

Declaration
public static ITypeSymbol GetSymbol(this IType type)
Parameters
Type Name Description
IType type
Returns
Type Description
Microsoft.CodeAnalysis.ITypeSymbol

GetSymbol(INamedType)

Declaration
public static INamedTypeSymbol GetSymbol(this INamedType namedType)
Parameters
Type Name Description
INamedType namedType
Returns
Type Description
Microsoft.CodeAnalysis.INamedTypeSymbol

GetSymbol(IMethodBase)

Declaration
public static IMethodSymbol GetSymbol(this IMethodBase method)
Parameters
Type Name Description
IMethodBase method
Returns
Type Description
Microsoft.CodeAnalysis.IMethodSymbol

GetSymbol(IProperty)

Declaration
public static IPropertySymbol GetSymbol(this IProperty property)
Parameters
Type Name Description
IProperty property
Returns
Type Description
Microsoft.CodeAnalysis.IPropertySymbol

GetSymbol(IEvent)

Declaration
public static IEventSymbol GetSymbol(this IEvent event)
Parameters
Type Name Description
IEvent event
Returns
Type Description
Microsoft.CodeAnalysis.IEventSymbol

GetSymbol(IField)

Declaration
public static IFieldSymbol GetSymbol(this IField field)
Parameters
Type Name Description
IField field
Returns
Type Description
Microsoft.CodeAnalysis.IFieldSymbol

GetSymbol(IParameter)

Declaration
public static IParameterSymbol GetSymbol(this IParameter parameter)
Parameters
Type Name Description
IParameter parameter
Returns
Type Description
Microsoft.CodeAnalysis.IParameterSymbol