Share via


ImmutableSortedDictionary.CreateRange Método

Definição

Sobrecargas

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

Cria um dicionário classificado imutável que contém os itens especificados e usa o comparador padrão.

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

Cria um novo dicionário classificado imutável com base no intervalo especificado de itens com o comparador de chave especificado.

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

Cria um novo dicionário classificado imutável com base no intervalo especificado de itens com os comparadores de chave e valor especificados.

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

Origem:
ImmutableSortedDictionary.cs
Origem:
ImmutableSortedDictionary.cs
Origem:
ImmutableSortedDictionary.cs

Cria um dicionário classificado imutável que contém os itens especificados e usa o comparador padrão.

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)

Parâmetros de tipo

TKey

O tipo de chaves armazenadas no dicionário.

TValue

O tipo de valores armazenados no dicionário.

Parâmetros

items
IEnumerable<KeyValuePair<TKey,TValue>>

Os itens a serem adicionados ao dicionário classificado antes que ele seja imutável.

Retornos

Um dicionário classificado imutável que contém os itens especificados.

Aplica-se a

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

Origem:
ImmutableSortedDictionary.cs
Origem:
ImmutableSortedDictionary.cs
Origem:
ImmutableSortedDictionary.cs

Cria um novo dicionário classificado imutável com base no intervalo especificado de itens com o comparador de chave especificado.

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)

Parâmetros de tipo

TKey

O tipo de chaves armazenadas no dicionário.

TValue

O tipo de valores armazenados no dicionário.

Parâmetros

keyComparer
IComparer<TKey>

A implementação de comparador a ser usada para avaliar as chaves quanto à igualdade e classificação.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Os itens a serem adicionados ao dicionário classificado.

Retornos

O novo dicionário classificado imutável que contém os itens especificados e usa o comparador de chave especificado.

Aplica-se a

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

Origem:
ImmutableSortedDictionary.cs
Origem:
ImmutableSortedDictionary.cs
Origem:
ImmutableSortedDictionary.cs

Cria um novo dicionário classificado imutável com base no intervalo especificado de itens com os comparadores de chave e valor especificados.

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)

Parâmetros de tipo

TKey

O tipo de chaves armazenadas no dicionário.

TValue

O tipo de valores armazenados no dicionário.

Parâmetros

keyComparer
IComparer<TKey>

A implementação de comparador a ser usada para comparar as chaves quanto à igualdade e classificação.

valueComparer
IEqualityComparer<TValue>

A implementação de comparador a ser usada para comparar os valores quanto à igualdade.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Os itens a serem adicionados ao dicionário classificado antes que ele seja imutável.

Retornos

Um dicionário classificado imutável que contém os itens especificados e usa os comparadores especificados.

Aplica-se a