ImmutableSortedDictionary.CreateRange Метод

Определение

Перегрузки

Имя Описание
CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)

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

CreateRange<TKey,TValue>(IComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)

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

CreateRange<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)

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

CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)

Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs

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

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)

Параметры типа

TKey

Тип ключей, хранящихся в словаре.

TValue

Тип значений, хранящихся в словаре.

Параметры

items
IEnumerable<KeyValuePair<TKey,TValue>>

Элементы, добавляемые в отсортированный словарь, прежде чем он неизменяем.

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

Неизменяемый отсортированный словарь, содержащий указанные элементы.

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

CreateRange<TKey,TValue>(IComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)

Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs

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

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IComparer<'Key> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IComparer(Of TKey), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)

Параметры типа

TKey

Тип ключей, хранящихся в словаре.

TValue

Тип значений, хранящихся в словаре.

Параметры

keyComparer
IComparer<TKey>

Реализация сравнения, используемая для оценки ключей для равенства и сортировки.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Элементы, добавляемые в отсортированный словарь.

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

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

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

CreateRange<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)

Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs
Исходный код:
ImmutableSortedDictionary.cs

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

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)

Параметры типа

TKey

Тип ключей, хранящихся в словаре.

TValue

Тип значений, хранящихся в словаре.

Параметры

keyComparer
IComparer<TKey>

Реализация сравнения ключей для сравнения ключей для равенства и сортировки.

valueComparer
IEqualityComparer<TValue>

Реализация сравнения для сравнения значений для равенства.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Элементы, добавляемые в отсортированный словарь, прежде чем он неизменяем.

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

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

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