語言

ImmutableSortedSet<T>.Builder.KeyComparer 屬性

定義

取得或設定 對象,這個物件用來判斷不可變排序集合中值的相等性。

public:
 property System::Collections::Generic::IComparer<T> ^ KeyComparer { System::Collections::Generic::IComparer<T> ^ get(); void set(System::Collections::Generic::IComparer<T> ^ value); };
public System.Collections.Generic.IComparer<T> KeyComparer { get; set; }
member this.KeyComparer : System.Collections.Generic.IComparer<'T> with get, set
Public Property KeyComparer As IComparer(Of T)

屬性值

比較器用於判定集合中各值的相等。

備註

如果比較器被更改以導致碰撞的方式出現,衝突元素會被刪除,只剩下每對匹配中的一個元素。

適用於