KeyedCollection<TKey,TItem>.Comparer 屬性

定義

取得用來判斷集合中索引鍵是否相等的泛型等號比較子。

public:
 property System::Collections::Generic::IEqualityComparer<TKey> ^ Comparer { System::Collections::Generic::IEqualityComparer<TKey> ^ get(); };
public System.Collections.Generic.IEqualityComparer<TKey> Comparer { get; }
member this.Comparer : System.Collections.Generic.IEqualityComparer<'Key>
Public ReadOnly Property Comparer As IEqualityComparer(Of TKey)

屬性值

IEqualityComparer<T> 泛型介面的實作,用來判斷集合中索引鍵是否相等。

備註

擷取這個屬性的值是一種 O(1) 運算。

適用於