Click or drag to resize
NullableTEquals Method

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public override bool Equals(
	Object other
)

Parameters

other
Type: SystemObject
An object.

Return Value

Type: Boolean
true if the other parameter is equal to the current NullableT object; otherwise, false. This table describes how equality is defined for the compared values: Return ValueDescriptiontrueThe HasValue property is false, and the other parameter is null. That is, two null values are equal by definition.-or-The HasValue property is true, and the value returned by the Value property is equal to the other parameter.falseThe HasValue property for the current NullableT structure is true, and the other parameter is null.-or-The HasValue property for the current NullableT structure is false, and the other parameter is not null.-or-The HasValue property for the current NullableT structure is true, and the value returned by the Value property is not equal to the other parameter.
See Also