Expression.Unbox(Expression, Type) Method

Definition

Creates a UnaryExpression that represents an explicit unboxing.

public:
 static System::Linq::Expressions::UnaryExpression ^ Unbox(System::Linq::Expressions::Expression ^ expression, Type ^ type);
public static System.Linq.Expressions.UnaryExpression Unbox (System.Linq.Expressions.Expression expression, Type type);
static member Unbox : System.Linq.Expressions.Expression * Type -> System.Linq.Expressions.UnaryExpression
Public Shared Function Unbox (expression As Expression, type As Type) As UnaryExpression

Parameters

expression
Expression

An Expression to unbox.

type
Type

The new Type of the expression.

Returns

UnaryExpression

An instance of UnaryExpression.

Applies to