Open sandboxFocus

Method CastTo

CastTo(IExpression, IType)

Returns an expression obtained by casting another expression to a type given as an IType.

Declaration
public static IExpression CastTo(this IExpression expression, IType targetType)
Parameters
Type Name Description
IExpression expression
IType targetType
Returns
Type Description
IExpression

CastTo(IExpression, Type)

Returns an expression obtained by casting another expression to a type given as a Type.

Declaration
public static IExpression CastTo(this IExpression expression, Type targetType)
Parameters
Type Name Description
IExpression expression
Type targetType
Returns
Type Description
IExpression

CastTo<T>(IExpression)

Returns an expression obtained by casting another expression to a type given as a generic parameter.

Declaration
public static IExpression CastTo<T>(this IExpression expression)
Parameters
Type Name Description
IExpression expression
Returns
Type Description
IExpression
Type Parameters
Name Description
T