Share via


ImmutableDictionary.CreateRange Método

Definición

Sobrecargas

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

Crea un nuevo diccionario inmutable que contiene los elementos especificados.

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

Crea un nuevo diccionario inmutable que contiene los elementos especificados y usa el comparador de claves especificado.

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

Crea un nuevo diccionario inmutable que contiene los elementos especificados y usa el comparador de claves especificado.

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

Crea un nuevo diccionario inmutable que contiene los elementos especificados.

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

Tipo de claves del diccionario.

TValue

Tipo de valores del diccionario.

Parámetros

items
IEnumerable<KeyValuePair<TKey,TValue>>

Elementos que se usan para rellenar el diccionario antes de que se convierta en inmutable.

Devoluciones

Nuevo diccionario inmutable que contiene los elementos especificados.

Se aplica a

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

Crea un nuevo diccionario inmutable que contiene los elementos especificados y usa el comparador de claves especificado.

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

Tipo de claves del diccionario.

TValue

Tipo de valores del diccionario.

Parámetros

keyComparer
IEqualityComparer<TKey>

Implementación de comparador que se va a utilizar para comparar las claves para la igualdad.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Elementos que se van a agregar al diccionario antes de que se convierta en inmutable.

Devoluciones

Nuevo diccionario inmutable que contiene los elementos especificados y usa el comparador especificado.

Se aplica a

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

Crea un nuevo diccionario inmutable que contiene los elementos especificados y usa el comparador de claves especificado.

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

Tipo de claves del diccionario.

TValue

Tipo de valores del diccionario.

Parámetros

keyComparer
IEqualityComparer<TKey>

Implementación de comparador que se va a utilizar para comparar las claves para la igualdad.

valueComparer
IEqualityComparer<TValue>

Implementación de comparador que se va a utilizar para comparar los valores para la igualdad.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Elementos que se van a agregar al diccionario antes de que se convierta en inmutable.

Devoluciones

Nuevo diccionario inmutable que contiene los elementos especificados y usa el comparador especificado.

Se aplica a