Share via


NullComparer<T> Class

Definition

A null comparer that pretends every item is equal. This is particularly useful with stable sorts.

public sealed class NullComparer<T> : System.Collections.Generic.IComparer<T>
type NullComparer<'T> = class
    interface IComparer<'T>
Public NotInheritable Class NullComparer(Of T)
Implements IComparer(Of T)

Type Parameters

T
Inheritance
NullComparer<T>
Implements

Fields

Instance

Explicit Interface Implementations

IComparer<T>.Compare(T, T)

Applies to