Export (0) Print
Expand All

DataServiceProviderMethods.Compare Method (Nullable<Boolean>, Nullable<Boolean>)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns comparison information for nullable Boolean parameters in an operation expression.

Namespace:  System.Data.Services.Providers
Assembly:  System.Data.Services (in System.Data.Services.dll)

public static int Compare(
	Nullable<bool> left,
	Nullable<bool> right
)

Parameters

left
Type: System.Nullable<Boolean>
The first parameter value.
right
Type: System.Nullable<Boolean>
The second parameter value.

Return Value

Type: System.Int32

Value

Condition

-1

left is less than right.

0

x equals y.

1

left is greater than right.

In this comparison, true is greater than false.

.NET Framework

Supported in: 4

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.

Community Additions

ADD
Show:
© 2014 Microsoft