Aracılığıyla paylaş


BinaryExpression.IsLiftedToNull Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public ReadOnly Property IsLiftedToNull As Boolean
public bool IsLiftedToNull { get; }

Property Value

Type: System.Boolean
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 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 nulla null reference (Nothing in Visual Basic), the operator returns nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.