Class DoubletComparer<T>
- Namespace
- Platform.Data.Doublets
- Assembly
- Platform.Data.Doublets.dll
Compares doublets by their source and target.
public class DoubletComparer<T> : IEqualityComparer<Doublet<T>> where T : IUnsignedNumber<T>
Type Parameters
T
- Inheritance
-
DoubletComparer<T>
- Implements
- Inherited Members
Remarks
TODO: Может стоит попробовать ref во всех методах (IRefEqualityComparer) 2x faster with comparer
Fields
Default
The .
public static readonly DoubletComparer<T> Default
Field Value
Methods
Equals(Doublet<T>, Doublet<T>)
Determines whether this instance equals.
public bool Equals(Doublet<T> x, Doublet<T> y)
Parameters
Returns
- bool
The bool
GetHashCode(Doublet<T>)
Gets the hash code using the specified obj.
public int GetHashCode(Doublet<T> obj)
Parameters
objDoublet<T>The obj.
Returns
- int
The int