NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Double.Equals

Compares this instance with a specified Object.

[Visual Basic]
Overrides Public Function Equals( _
   ByVal obj As Object _
) As Boolean
[C#]
public override bool Equals(
   object obj
);
[C++]
public: override bool Equals(
   Object* obj
);
[JScript]
public override function Equals(
   obj : Object
) : Boolean;

Parameters

obj
The object to compare with this instance.

Return Value

true if the object is a Double that equals the specified Object; otherwise, false.

Remarks

The Equals method is a way of determining object equality between two objects. It only returns true if the object is a Double and has the same value as the current instance. The two object references are compared to determine their equality in three areas: value, type, and numbers. If obj and this Double instance are:

Overrides Equals.

Note   That false will be returned if NaN. Not a number (NaN) should never be used for comparing.

See Also

Double Structure | Double Members | System Namespace | Object