ImmutableSortedSet<T>.Builder.KeyComparer 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 對象,這個物件用來判斷不可變排序集合中值的相等性。
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)
屬性值
比較器用於判定集合中各值的相等。
備註
如果比較器被更改以導致碰撞的方式出現,衝突元素會被刪除,只剩下每對匹配中的一個元素。