ImmutableSortedDictionary<TKey,TValue>.WithComparers Метод

Определение

Перегрузки

Имя Описание
WithComparers(IComparer<TKey>)

Возвращает экземпляр неизменяемого сортированного словаря, использующего указанный средство сравнения ключей.

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

Возвращает экземпляр неизменяемого сортированного словаря, использующего указанные средства сравнения ключей и значений.

WithComparers(IComparer<TKey>)

Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
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>)

Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
ImmutableSortedDictionary_2.cs
Исходный код:
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>

Средство сравнения значений для использования.

Возвращаемое значение

Экземпляр неизменяемого словаря, использующего заданные компраторы.

Применяется к