ObjectReferenceEquals Method |
Determines whether the specified
Object instances are the same instance.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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:
Booleantrue if
objA is the same instance as
objB or if both are null; otherwise, false.
See Also