ImmutableSortedDictionary<TKey,TValue>.WithComparers 方法

定义

重载

WithComparers(IComparer<TKey>)

获取使用指定键比较器的不可变排序字典的实例。

WithComparers(IComparer<TKey>, IEqualityComparer<TValue>)

获取使用指定键和值比较器的不可变排序字典的实例。

WithComparers(IComparer<TKey>)

Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs

获取使用指定键比较器的不可变排序字典的实例。

public:
 System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ WithComparers(System::Collections::Generic::IComparer<TKey> ^ keyComparer);
public System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IComparer<TKey> keyComparer);
public System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IComparer<TKey>? keyComparer);
member this.WithComparers : System.Collections.Generic.IComparer<'Key> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function WithComparers (keyComparer As IComparer(Of TKey)) As ImmutableSortedDictionary(Of TKey, TValue)

参数

keyComparer
IComparer<TKey>

要使用的键比较器。

返回

使用给定比较器的不可变字典的实例。

适用于

WithComparers(IComparer<TKey>, IEqualityComparer<TValue>)

Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs

获取使用指定键和值比较器的不可变排序字典的实例。

public:
 System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ WithComparers(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer);
public System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
public System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);
member this.WithComparers : System.Collections.Generic.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function WithComparers (keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue)) As ImmutableSortedDictionary(Of TKey, TValue)

参数

keyComparer
IComparer<TKey>

要使用的键比较器。

valueComparer
IEqualityComparer<TValue>

要使用的值比较器。

返回

使用给定比较器的不可变字典的实例。

适用于