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 套件

關於不可變的集合以及如何安裝

適用於