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)

属性值

用于确定集中值的相等性比较器。

注解

如果比较器以引入冲突的方式进行更改,则会删除冲突元素,只留下集合中的每个匹配对之一。

适用于