Class MemberSerializer.ObjectReferenceEqualityComparer
- Namespace
- Stride.Core.Serialization
- Assembly
- Stride.Core.dll
Implements an equality comparer based on object reference instead of Equals(object).
public class MemberSerializer.ObjectReferenceEqualityComparer : EqualityComparer<object>, IEqualityComparer<object>, IEqualityComparer
- Inheritance
-
MemberSerializer.ObjectReferenceEqualityComparer
- Implements
Properties
Default
public static IEqualityComparer<object> Default { get; }
Property Value
Methods
Equals(object, object)
When overridden in a derived class, determines whether two objects of type object are equal.
public override bool Equals(object x, object y)
Parameters
Returns
GetHashCode(object)
When overridden in a derived class, serves as a hash function for the specified object for hashing algorithms and data structures, such as a hash table.
public override int GetHashCode(object obj)
Parameters
obj
objectThe object for which to get a hash code.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.