ExpressionFactory.CastTo Method
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
Returns
Returns an expression obtained by casting another expression to a type given as a System.Type.
Declaration
public static IExpression CastTo(this IExpression expression, Type targetType)
Parameters
Type |
Name |
Description |
IExpression |
expression |
|
System.Type |
targetType |
|
Returns
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
Returns
Type Parameters