ImmutableSortedSet<T>.WithComparer(IComparer<T>) 方法

定义

返回具有指定键比较器的不可变排序集。

public:
 System::Collections::Immutable::ImmutableSortedSet<T> ^ WithComparer(System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableSortedSet<T> WithComparer (System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableSortedSet<T> WithComparer (System.Collections.Generic.IComparer<T>? comparer);
member this.WithComparer : System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function WithComparer (comparer As IComparer(Of T)) As ImmutableSortedSet(Of T)

参数

comparer
IComparer<T>

要检查的比较器。

返回

具有指定键比较器的不可变排序集。

注解

System.Collections.Immutable NuGet 包

关于不可变集合以及如何安装

适用于