Export (0) Print
Expand All

Nullable.Equals Generic Method (Generic Nullable, Generic Nullable)

Indicates whether two specified Nullable objects are equal.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)] 
public static bool Equals<T> (
	Nullable<T> n1,
	Nullable<T> n2
) where T : struct
J# supports the use of generic types and methods, but not the declaration of new ones.
JScript does not support generic types and methods.
Not applicable.

Type Parameters

T

The underlying value type of the n1 and n2 parameters.

Parameters

n1

A Nullable object.

n2

A Nullable object.

Return Value

true if the n1 parameter is equal to the n2 parameter; otherwise, false. The return value depends on the HasValue and Value properties of the two parameters that are compared.

Return Value

Description

true

The HasValue properties for n1 and n2 are false.

-or-

The HasValue properties for n1 and n2 are true, and the Value properties of the parameters are equal.

false

The HasValue property is true for one parameter and false for the other parameter.

-or-

The HasValue properties for n1 and n2 are true, and the Value properties of the parameters are unequal.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft