Metalama 1.0 / / Metalama Documentation / Advanced API / Metalama.​Framework.​Engine.​Code­Model / Symbol­Extensions / Get­Symbol

Method GetSymbol

GetSymbol(IDeclaration)

Declaration
public static ISymbol GetSymbol(this IDeclaration declaration)
Parameters
Type Name Description
IDeclaration declaration
Returns
Type Description
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
Compilation compilation
Boolean ignoreAssemblyKey
Returns
Type Description
ISymbol

GetSymbol(IType)

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

GetSymbol(INamedType)

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

GetSymbol(IMethodBase)

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

GetSymbol(IProperty)

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

GetSymbol(IEvent)

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

GetSymbol(IField)

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

GetSymbol(IParameter)

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