GetExpressionType(ISymbol)
Gets the type of the expression represented by the symbol (e.g., the return type for a method, the field type for a field).
Declaration
public static ITypeSymbol? GetExpressionType(this ISymbol symbol)Parameters
| Type | Name | Description |
|---|---|---|
| ISymbol | symbol | The Roslyn symbol. |
Returns
| Type | Description |
|---|---|
| ITypeSymbol | The expression type, or |