Export (0) Print
Expand All

Object.ReferenceEquals Method

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

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


[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.

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

Community Additions

ADD
Show:
© 2015 Microsoft