MemberSerializer.ObjectReferenceEqualityComparer Class
Namespace: Stride.Core.SerializationAssembly: Stride.Core.dll
Implements an equality comparer based on object reference instead of System.Object.Equals(System.Object).
System.Object → System.Collections.Generic.EqualityComparer<System.Object> →
MemberSerializer.ObjectReferenceEqualityComparer
Derived from MemberSerializer.ObjectReferenceEqualityComparer:
public class ObjectReferenceEqualityComparer : EqualityComparer<object>, IEqualityComparer<object>, IEqualityComparer
Name | Description | |
---|---|---|
Properties | ||
Default | ||
Methods | ||
Equals(Object, Object) | ||
GetHashCode(Object) |
Properties
Default
public static IEqualityComparer<object> Default { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEqualityComparer<System.Object> |
Methods
Equals(Object, Object)
public override bool Equals(object x, object y)
Parameters
Type | Name | Description |
---|---|---|
System.Object | x | |
System.Object | y |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Collections.Generic.EqualityComparer<System.Object>.Equals(System.Object, System.Object)
GetHashCode(Object)
public override int GetHashCode(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Collections.Generic.EqualityComparer<System.Object>.GetHashCode(System.Object)
Inherited Members
System.Collections.Generic.EqualityComparer<System.Object>.System.Collections.IEqualityComparer.Equals(System.Object, System.Object)
System.Collections.Generic.EqualityComparer<System.Object>.System.Collections.IEqualityComparer.GetHashCode(System.Object)