This topic has not yet been rated - Rate this topic

UnaryExpression.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
Assembly:  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 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.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ