NullComparer<T> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個假裝每個項目相等的空比較器。 這在穩定排序中特別有用。
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>
欄位
| 名稱 | Description |
|---|---|
| Instance |
一個假裝每個項目相等的空比較器。 這在穩定排序中特別有用。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IComparer<T>.Compare(T, T) |
一個假裝每個項目相等的空比較器。 這在穩定排序中特別有用。 |