Operations<T>.Comparer Property

Gets the comparer for the operand type.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
public static IComparer<T> Comparer { get; }

Property Value

IComparer<T>

Remarks

Provides a stable sorting relation consistent with Compare, independently of numerical equality and unordered relational predicates. The implementation owns comparer instances and may return its own cached comparer. Consumers may retain one for an operation or collection. Getter exceptions propagate and are not cached by the library. Collection hashing uses the type's equality/hash contract instead.

See Also