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

定义

返回具有指定键比较器的不可变排序集。Returns the immutable sorted set that has the specified key 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>

要检查的比较器。The comparer to check for.

返回

具有指定键比较器的不可变排序集。The immutable sorted set that has the specified key comparer.

注解

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于