Click or drag to resize
ObjectReferenceEquals Method
Determines whether the specified Object instances are the same instance.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool ReferenceEquals(
	Object objA,
	Object objB
)

Parameters

objA
Type: SystemObject
The first object to compare.
objB
Type: SystemObject
The second object to compare.

Return Value

Type: Boolean
true if objA is the same instance as objB or if both are null; otherwise, false.
See Also