Share via


Object.ReferenceEquals Method

Determines whether two specified instances (objects) of the Object class are the same object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

[MethodImplAttribute]
public static bool ReferenceEquals (
         ObjectobjA,
         ObjectobjB
)

Parameters

  • objA
    The first object you want to compare.
  • objB
    The second object you want to compare.

Return Value

true if the objA and objB parameters are exactly the same or if both are null references; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Object Class
Object Members
System Namespace