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!

Single.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 specified object to compare with this instance.

Return Value

true if the object is a Single and equals the specified Object; otherwise, false.

Remarks

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

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

Overrides Equals.

See Also

Single Structure | Single Members | System Namespace