You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default == and != operator compare equality by reference. So when I have classes overrides Equals() method, these customized equal logic won't be honored. The same issue also impacts contains binary operator. Ideally when compare objects or check if an array contains an object, we should compare value instead of reference.
The text was updated successfully, but these errors were encountered:
The default
==
and!=
operator compare equality by reference. So when I have classes overridesEquals()
method, these customized equal logic won't be honored. The same issue also impactscontains
binary operator. Ideally when compare objects or check if an array contains an object, we should compare value instead of reference.The text was updated successfully, but these errors were encountered: