Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsLiftedToNull Property

BinaryExpression.IsLiftedToNull Property

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.

Namespace:  System.Linq.Expressions
Assemblies:   System.Linq.Expressions (in System.Linq.Expressions.dll)
  System.Core (in System.Core.dll)

public bool IsLiftedToNull { get; }

Property Value

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

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft