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 (
         Object objA,
         Object objB
)

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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

Object Class
Object Members
System Namespace