ImmutableDictionary.CreateRange Método
Definição
Sobrecargas
| CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>) |
Cria um novo dicionário imutável que contém os itens especificados.Creates a new immutable dictionary that contains the specified items. |
| CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>) |
Cria um novo dicionário imutável que contém os itens especificados e usa o comparador de chave especificado.Creates a new immutable dictionary that contains the specified items and uses the specified key comparer. |
| CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>) |
Cria um novo dicionário imutável que contém os itens especificados e usa o comparador de chave especificado.Creates a new immutable dictionary that contains the specified items and uses the specified key comparer. |
CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)
Cria um novo dicionário imutável que contém os itens especificados.Creates a new immutable dictionary that contains the specified items.
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<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.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)
Parâmetros de tipo
- TKey
O tipo de chaves no dicionário.The type of keys in the dictionary.
- TValue
O tipo de valores no dicionário.The type of values in the dictionary.
Parâmetros
- items
- IEnumerable<KeyValuePair<TKey,TValue>>
Os itens usados para preencher o dicionário antes de que ele seja imutável.The items used to populate the dictionary before it's immutable.
Retornos
Um novo dicionário imutável que contém os itens especificados.A new immutable dictionary that contains the specified items.
Aplica-se a
CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)
Cria um novo dicionário imutável que contém os itens especificados e usa o comparador de chave especificado.Creates a new immutable dictionary that contains the specified items and uses the specified key comparer.
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IEqualityComparer<'Key> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)
Parâmetros de tipo
- TKey
O tipo de chaves no dicionário.The type of keys in the dictionary.
- TValue
O tipo de valores no dicionário.The type of values in the dictionary.
Parâmetros
- keyComparer
- IEqualityComparer<TKey>
A implementação de comparador a ser usada para comparar as chaves quanto à igualdade.The comparer implementation to use to compare keys for equality.
- items
- IEnumerable<KeyValuePair<TKey,TValue>>
Os itens a serem adicionados ao dicionário antes que ele seja imutável.The items to add to the dictionary before it's immutable.
Retornos
Um novo dicionário imutável que contém os itens especificados e usa o comparador especificado.A new immutable dictionary that contains the specified items and uses the specified comparer.
Aplica-se a
CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)
Cria um novo dicionário imutável que contém os itens especificados e usa o comparador de chave especificado.Creates a new immutable dictionary that contains the specified items and uses the specified key comparer.
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<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.IEqualityComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)
Parâmetros de tipo
- TKey
O tipo de chaves no dicionário.The type of keys in the dictionary.
- TValue
O tipo de valores no dicionário.The type of values in the dictionary.
Parâmetros
- keyComparer
- IEqualityComparer<TKey>
A implementação de comparador a ser usada para comparar as chaves quanto à igualdade.The comparer implementation to use to compare keys for equality.
- valueComparer
- IEqualityComparer<TValue>
A implementação de comparador a ser usada para comparar os valores quanto à igualdade.The comparer implementation to use to compare values for equality.
- items
- IEnumerable<KeyValuePair<TKey,TValue>>
Os itens a serem adicionados ao dicionário antes que ele seja imutável.The items to add to the dictionary before it's immutable.
Retornos
Um novo dicionário imutável que contém os itens especificados e usa o comparador especificado.A new immutable dictionary that contains the specified items and uses the specified comparer.