Object::Equals Method (Object, Object)
Updated: December 2010
Determines whether the specified Object instances are considered equal.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- objA
- Type: System::Object
The first Object to compare.
- objB
- Type: System::Object
The second Object to compare.
Return Value
Type: System::Booleantrue if objA is the same instance as objB or if both are null references or if objA.Equals(objB) returns true; otherwise, false.
The default implementation of Equals supports reference equality for reference types, and bitwise equality for value types. Reference equality means the object references that are compared refer to the same object. Bitwise equality means the objects that are compared have the same binary representation.
Note that a derived type might override the Equals method to implement value equality. Value equality means the compared objects have the same value but different binary representations.
For more information, see the Object::Equals(Object) topic.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.