Mono Class Library: System.Double Overview | Members

System.Double.Equals Method

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

public override bool Equals (object obj)

Parameters

obj
The object to compare to the current instance.

Returns

true if obj is a double with the same value as the current instance, otherwise false. If obj is a null reference or is not an instance of double, returns false. If either obj or the current instance is a NaN and the other is not, returns false. If obj and the current instance are both NaN, positive infinity, or negative infinity, returns true.

Remarks

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

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0