GetSymbol(ICompilationElement, bool)
Declaration
public static ISymbol? GetSymbol(this ICompilationElement declaration, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| ICompilationElement | declaration | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| ISymbol |
GetSymbol(IRef, Compilation, bool)
Declaration
public static ISymbol? GetSymbol(this IRef declaration, Compilation compilation, bool ignoreAssemblyKey = false)Parameters
| Type | Name | Description |
|---|---|---|
| IRef | declaration | |
| Compilation | compilation | |
| bool | ignoreAssemblyKey |
Returns
| Type | Description |
|---|---|
| ISymbol |
GetSymbol(IType, bool)
Declaration
public static ITypeSymbol? GetSymbol(this IType type, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| IType | type | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| ITypeSymbol |
GetSymbol(INamedType, bool)
Declaration
public static INamedTypeSymbol? GetSymbol(this INamedType namedType, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| INamedType | namedType | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| INamedTypeSymbol |
GetSymbol(ITypeParameter, bool)
Declaration
public static ITypeParameterSymbol? GetSymbol(this ITypeParameter typeParameter, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| ITypeParameter | typeParameter | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| ITypeParameterSymbol |
GetSymbol(IMethodBase, bool)
Declaration
public static IMethodSymbol? GetSymbol(this IMethodBase method, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| IMethodBase | method | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| IMethodSymbol |
GetSymbol(IProperty, bool)
Declaration
public static IPropertySymbol? GetSymbol(this IProperty property, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| IProperty | property | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| IPropertySymbol |
GetSymbol(IEvent, bool)
Declaration
public static IEventSymbol? GetSymbol(this IEvent @event, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| IEvent | event | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| IEventSymbol |
GetSymbol(IField, bool)
Declaration
public static IFieldSymbol? GetSymbol(this IField field, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| IField | field | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| IFieldSymbol |
GetSymbol(IParameter, bool)
Declaration
public static IParameterSymbol? GetSymbol(this IParameter parameter, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| IParameter | parameter | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| IParameterSymbol |
GetSymbol(IAssembly, bool)
Declaration
public static IAssemblySymbol GetSymbol(this IAssembly assembly, bool returnNullIfMappingRequired = true)Parameters
| Type | Name | Description |
|---|---|---|
| IAssembly | assembly | |
| bool | returnNullIfMappingRequired |
Returns
| Type | Description |
|---|---|
| IAssemblySymbol |