Class DataTypeEqualityComparer<T>
Equality comparer for data model complaint types.
Inheritance
System.Object
DataTypeEqualityComparer<T>
Implements
System.Collections.Generic.IEqualityComparer<T>
Namespace: Nuqleon.DataModel.TypeSystem
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
[KnownType]
public class DataTypeEqualityComparer<T> : Object, IEqualityComparer<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
DataTypeEqualityComparer()
Declaration
public DataTypeEqualityComparer()
Properties
Default
Gets a default instance for the equality comparer.
Declaration
public static DataTypeEqualityComparer<T> Default { get; }
Property Value
Type | Description |
---|---|
DataTypeEqualityComparer<T> |
Methods
Equals(T, T)
Checks for value equality of two objects with data model-compliant types.
Declaration
public bool Equals(T x, T y)
Parameters
Type | Name | Description |
---|---|---|
T | x | The first object. |
T | y | The second object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the objects are equal, false otherwise. |
GetHashCode(T)
Gets the hash code of an object.
Declaration
public int GetHashCode(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object. |
Returns
Type | Description |
---|---|
System.Int32 | The hash code of the object. |
Implements
System.Collections.Generic.IEqualityComparer<>