ReferenceEqualityComparer.Equals(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether two object references refer to the same object instance.
public:
virtual bool Equals(System::Object ^ x, System::Object ^ y);
public bool Equals (object? x, object? y);
override this.Equals : obj * obj -> bool
Public Function Equals (x As Object, y As Object) As Boolean
Parameters
- x
- Object
The first object to compare.
- y
- Object
The second object to compare.
Returns
true
if both x
and y
refer to the same object instance or if both are null
; otherwise, false
.
Implements
Remarks
This API is a wrapper around ReferenceEquals(Object, Object). It is not necessarily equivalent to calling Equals(Object, Object).
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru