Open sandboxFocus

Method ToTypeOfExpression

ToTypeOfExpression(IType)

Gets an IExpression representing 'typeof' expression for the given type.

Declaration
public static IExpression ToTypeOfExpression(this IType type)
Parameters
Type Name Description
IType type

The type.

Returns
Type Description
IExpression

An IExpression representing typeof(type).