Creates a System.Linq.Expressions.UnaryExpression that represents an explicit reference or boxing conversion where null is supplied if the conversion fails.
- expression
- An System.Linq.Expressions.Expression to set the UnaryExpression.Operand property equal to.
- type
- A Type to set the Expression.Type property equal to.
A System.Linq.Expressions.UnaryExpression that has the Expression.NodeType property equal to ExpressionType.TypeAs and the UnaryExpression.Operand and Expression.Type properties set to the specified values.
The UnaryExpression.Method property of the resulting System.Linq.Expressions.UnaryExpression is null. The UnaryExpression.IsLifted and UnaryExpression.IsLiftedToNull properties are both false.