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)。

适用于