Open sandboxFocus

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, bool)

Declaration
public static ISymbol? GetSymbol(this IRef<ICompilationElement> declaration, Compilation compilation, bool ignoreAssemblyKey = false)
Parameters
Type Name Description
IRef<ICompilationElement> declaration
Compilation compilation
bool 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(ITypeParameter)

Declaration
public static ITypeParameterSymbol? GetSymbol(this ITypeParameter typeParameter)
Parameters
Type Name Description
ITypeParameter typeParameter
Returns
Type Description
ITypeParameterSymbol

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

GetSymbol(IAssembly)

Declaration
public static IAssemblySymbol GetSymbol(this IAssembly assembly)
Parameters
Type Name Description
IAssembly assembly
Returns
Type Description
IAssemblySymbol