NullComparer<T> 类

定义

假装每个项相等的 null 比较器。 这对于稳定的排序特别有用。

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)

类型参数

T
继承
NullComparer<T>
实现

字段

Instance

假装每个项相等的 null 比较器。 这对于稳定的排序特别有用。

显式接口实现

IComparer<T>.Compare(T, T)

假装每个项相等的 null 比较器。 这对于稳定的排序特别有用。

适用于