NullComparer<T> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
假装每个项相等的 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>
- 实现
-
IComparer<T>
字段
Instance |
假装每个项相等的 null 比较器。 这对于稳定的排序特别有用。 |
显式接口实现
IComparer<T>.Compare(T, T) |
假装每个项相等的 null 比较器。 这对于稳定的排序特别有用。 |