[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Determines whether the specified Object instances are the same instance.
Public Shared Function ReferenceEquals ( _
objA As Object, _
objB As Object _
) As Boolean
Type: System..::..Booleantrue if objA is the same instance as objB or if both are null; otherwise, false.
Unlike the Equals method and the equality operator, the ReferenceEquals method cannot be overridden. Because of this, if you want to test two object references for equality and are unsure about the implementation of the Equals method, you can call the ReferenceEquals method. However, note that if objA and objB are value types, they are boxed before they are passed to the ReferenceEquals method.