Mono Class Library: System.Nullable<T> Overview | Members

System.Nullable<T>.Equals Method

Determines whether the current instance and the specified object represent the same type and value.

public override bool Equals (object other)

Parameters

other
Documentation for this section has not yet been entered.

Returns

The following table defines the conditions under which the return value is true or false:

Returned ValueHasValue Conditionobj.HasValue Condition
falseThe current instance and obj have different types.The current instance and obj have different types.
truefalseobj is null.
falsetrueobj is null.
truefalsefalse
falsefalsetrue
falsetruefalse
Value.Equals(obj.Value)truetrue

Remarks

Note: This method overrides object.Equals(object).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0