Compartir vía


ImmutableSortedDictionary.CreateRange Método

Definición

Sobrecargas

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

Crea un diccionario ordenado inmutable que contiene los elementos especificados y usa el comparador especificado.

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

Crea un nuevo diccionario ordenado inmutable desde el intervalo especificado de elementos con el comparador de claves especificado.

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

Crea un nuevo diccionario ordenado inmutable desde el intervalo especificado de elementos con el comparador de claves y valores especificado.

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

Source:
ImmutableSortedDictionary.cs
Source:
ImmutableSortedDictionary.cs
Source:
ImmutableSortedDictionary.cs

Crea un diccionario ordenado inmutable que contiene los elementos especificados y usa el comparador especificado.

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

Tipo de claves del diccionario.

TValue

Tipo de valores del diccionario.

Parámetros

items
IEnumerable<KeyValuePair<TKey,TValue>>

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

Devoluciones

Diccionario ordenado inmutable que contiene los elementos especificados.

Se aplica a

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

Source:
ImmutableSortedDictionary.cs
Source:
ImmutableSortedDictionary.cs
Source:
ImmutableSortedDictionary.cs

Crea un nuevo diccionario ordenado inmutable desde el intervalo especificado de elementos con el comparador de claves 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

Tipo de claves del diccionario.

TValue

Tipo de valores del diccionario.

Parámetros

keyComparer
IComparer<TKey>

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

items
IEnumerable<KeyValuePair<TKey,TValue>>

Elementos a agregar al diccionario ordenado.

Devoluciones

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

Se aplica a

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

Source:
ImmutableSortedDictionary.cs
Source:
ImmutableSortedDictionary.cs
Source:
ImmutableSortedDictionary.cs

Crea un nuevo diccionario ordenado inmutable desde el intervalo especificado de elementos con el comparador de claves y valores especificado.

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

Tipo de claves del diccionario.

TValue

Tipo de valores del diccionario.

Parámetros

keyComparer
IComparer<TKey>

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

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 ordenado antes de que se convierta en inmutable.

Devoluciones

Diccionario ordenado inmutable que contiene los elementos especificados y usa los comparadores especificados.

Se aplica a