Share via


ExpressionExtensions.RemoveConvert(Expression) Method

Definition

Caution

Unwrap each convert manually by evaluating how they are used.

Returns a new expression with any see Convert or ConvertChecked nodes removed from the head of the given expression tree/

This method is typically used by database providers (and other extensions). It is generally not used in application code.

public static System.Linq.Expressions.Expression RemoveConvert (this System.Linq.Expressions.Expression expression);
[System.Obsolete("Unwrap each convert manually by evaluating how they are used.")]
public static System.Linq.Expressions.Expression RemoveConvert (this System.Linq.Expressions.Expression expression);
static member RemoveConvert : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
[<System.Obsolete("Unwrap each convert manually by evaluating how they are used.")>]
static member RemoveConvert : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
<Extension()>
Public Function RemoveConvert (expression As Expression) As Expression

Parameters

expression
Expression

The expression.

Returns

A new expression with converts at the head removed.

Attributes

Applies to