다음을 통해 공유


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 the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Object Class
Object Members
System Namespace