ToTypeOfExpression(IType, bool)
Gets an IExpression representing 'typeof' expression for the given type.
Declaration
public static IExpression ToTypeOfExpression(this IType type, bool preferConstructedType = false)Parameters
| Type | Name | Description |
|---|---|---|
| IType | type | The type. |
| bool | preferConstructedType | When |
Returns
| Type | Description |
|---|---|
| IExpression | An IExpression representing |