Bewerken

Share via


UnaryExpression.IsLiftedToNull Property

Definition

Gets a value that indicates whether the expression tree node represents a lifted call to an operator whose return type is lifted to a nullable type.

public:
 property bool IsLiftedToNull { bool get(); };
public bool IsLiftedToNull { get; }
member this.IsLiftedToNull : bool
Public ReadOnly Property IsLiftedToNull As Boolean

Property Value

true if the operator's return type is lifted to a nullable type; otherwise, false.

Remarks

An operator call is lifted if the operator expects a non-nullable operand but a nullable operand is passed to it. If the value of IsLiftedToNull is true, the operator returns a nullable type and if the nullable operand evaluates to null, the operator returns null.

Applies to