ImmutableSortedDictionary.ToImmutableSortedDictionary Método
Definición
Sobrecargas
ToImmutableSortedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>) |
Enumera una secuencia de pares de clave/valor y genera un diccionario ordenado inmutable de su contenido.Enumerates a sequence of key/value pairs and produces an immutable sorted dictionary of its contents. |
ToImmutableSortedDictionary<TKey,TValue>(ImmutableSortedDictionary<TKey,TValue>.Builder) |
Crea un diccionario ordenado inmutable a partir del contenido actual del diccionario del generador.Creates an immutable sorted dictionary from the current contents of the builder's dictionary. |
ToImmutableSortedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>, IComparer<TKey>) |
Enumera una secuencia de pares de clave-valor y genera un diccionario inmutable de su contenido mediante el comparador de claves especificado.Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents by using the specified key comparer. |
ToImmutableSortedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>, IComparer<TKey>, IEqualityComparer<TValue>) |
Enumera una secuencia de pares de clave-valor y genera un diccionario ordenado inmutable de su contenido mediante el comparador de claves y valores especificado.Enumerates a sequence of key/value pairs and produces an immutable sorted dictionary of its contents by using the specified key and value comparers. |
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>) |
Enumera y transforma una secuencia y genera un diccionario ordenado inmutable de su contenido.Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents. |
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>) |
Enumera y transforma una secuencia y genera un diccionario ordenado inmutable de su contenido mediante el comparador de claves especificado.Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer. |
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>) |
Enumera y transforma una secuencia y genera un diccionario ordenador inmutable de su contenido mediante el comparador de claves y valores especificado.Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers. |
ToImmutableSortedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)
Enumera una secuencia de pares de clave/valor y genera un diccionario ordenado inmutable de su contenido.Enumerates a sequence of key/value pairs and produces an immutable sorted dictionary of its contents.
public:
generic <typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutableSortedDictionary(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ source);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TKey,TValue> (this System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> source);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TKey,TValue> (this System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>? source);
static member ToImmutableSortedDictionary : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
<Extension()>
Public Function ToImmutableSortedDictionary(Of TKey, TValue) (source As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)
Parámetros de tipo
- TKey
Tipo de las claves del diccionario.The type of the keys in the dictionary.
- TValue
Tipo de los valores del diccionario.The type of the values in the dictionary.
Parámetros
- source
- IEnumerable<KeyValuePair<TKey,TValue>>
Secuencia de pares clave-valor a enumerar.The sequence of key/value pairs to enumerate.
Devoluciones
Diccionario ordenado inmutable que contiene los pares clave-valor en la secuencia especificada.An immutable sorted dictionary that contains the key/value pairs in the specified sequence.
Se aplica a
ToImmutableSortedDictionary<TKey,TValue>(ImmutableSortedDictionary<TKey,TValue>.Builder)
Crea un diccionario ordenado inmutable a partir del contenido actual del diccionario del generador.Creates an immutable sorted dictionary from the current contents of the builder's dictionary.
public:
generic <typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutableSortedDictionary(System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TKey,TValue> (this System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue>.Builder builder);
static member ToImmutableSortedDictionary : System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>.Builder -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
<Extension()>
Public Function ToImmutableSortedDictionary(Of TKey, TValue) (builder As ImmutableSortedDictionary(Of TKey, TValue).Builder) As ImmutableSortedDictionary(Of TKey, TValue)
Parámetros de tipo
- TKey
Tipo de las claves del diccionario.The type of the keys in the dictionary.
- TValue
Tipo de los valores del diccionario.The type of the values in the dictionary.
Parámetros
Generador desde el que se va a crear el diccionario ordenado inmutable.The builder to create the immutable sorted dictionary from.
Devoluciones
Diccionario ordenado inmutable que incluye el contenido actual del diccionario del generador.An immutable sorted dictionary that contains the current contents in the builder's dictionary.
Se aplica a
ToImmutableSortedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>, IComparer<TKey>)
Enumera una secuencia de pares de clave-valor y genera un diccionario inmutable de su contenido mediante el comparador de claves especificado.Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents by using the specified key comparer.
public:
generic <typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutableSortedDictionary(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ source, System::Collections::Generic::IComparer<TKey> ^ keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TKey,TValue> (this System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> source, System.Collections.Generic.IComparer<TKey> keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TKey,TValue> (this System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>? source, System.Collections.Generic.IComparer<TKey>? keyComparer);
static member ToImmutableSortedDictionary : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> * System.Collections.Generic.IComparer<'Key> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
<Extension()>
Public Function ToImmutableSortedDictionary(Of TKey, TValue) (source As IEnumerable(Of KeyValuePair(Of TKey, TValue)), keyComparer As IComparer(Of TKey)) As ImmutableSortedDictionary(Of TKey, TValue)
Parámetros de tipo
- TKey
Tipo de las claves del diccionario.The type of the keys in the dictionary.
- TValue
Tipo de los valores del diccionario.The type of the values in the dictionary.
Parámetros
- source
- IEnumerable<KeyValuePair<TKey,TValue>>
Secuencia de pares clave-valor a enumerar.The sequence of key/value pairs to enumerate.
- keyComparer
- IComparer<TKey>
Comparador de claves a utilizar al crear el diccionario inmutable.The key comparer to use when building the immutable dictionary.
Devoluciones
Diccionario ordenado inmutable que contiene los pares clave-valor en la secuencia especificada.An immutable sorted dictionary that contains the key/value pairs in the specified sequence.
Se aplica a
ToImmutableSortedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>, IComparer<TKey>, IEqualityComparer<TValue>)
Enumera una secuencia de pares de clave-valor y genera un diccionario ordenado inmutable de su contenido mediante el comparador de claves y valores especificado.Enumerates a sequence of key/value pairs and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.
public:
generic <typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutableSortedDictionary(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ source, System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TKey,TValue> (this System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> source, System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TKey,TValue> (this System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>? source, System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);
static member ToImmutableSortedDictionary : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> * System.Collections.Generic.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
<Extension()>
Public Function ToImmutableSortedDictionary(Of TKey, TValue) (source As IEnumerable(Of KeyValuePair(Of TKey, TValue)), keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue)) As ImmutableSortedDictionary(Of TKey, TValue)
Parámetros de tipo
- TKey
Tipo de las claves del diccionario.The type of the keys in the dictionary.
- TValue
Tipo de los valores del diccionario.The type of the values in the dictionary.
Parámetros
- source
- IEnumerable<KeyValuePair<TKey,TValue>>
Secuencia de pares clave-valor a enumerar.The sequence of key/value pairs to enumerate.
- keyComparer
- IComparer<TKey>
Comparador de claves a utilizar al crear el diccionario inmutable.The key comparer to use when building the immutable dictionary.
- valueComparer
- IEqualityComparer<TValue>
Comparador de valor que se usará para el diccionario inmutable.The value comparer to use for the immutable dictionary.
Devoluciones
Diccionario ordenado inmutable que contiene los pares clave-valor en la secuencia especificada.An immutable sorted dictionary that contains the key/value pairs in the specified sequence.
Se aplica a
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)
Enumera y transforma una secuencia y genera un diccionario ordenado inmutable de su contenido.Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.
public:
generic <typename TSource, typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutableSortedDictionary(System::Collections::Generic::IEnumerable<TSource> ^ source, Func<TSource, TKey> ^ keySelector, Func<TSource, TValue> ^ elementSelector);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TSource,TKey,TValue> (this System.Collections.Generic.IEnumerable<TSource> source, Func<TSource,TKey> keySelector, Func<TSource,TValue> elementSelector);
static member ToImmutableSortedDictionary : seq<'Source> * Func<'Source, 'Key> * Func<'Source, 'Value> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
<Extension()>
Public Function ToImmutableSortedDictionary(Of TSource, TKey, TValue) (source As IEnumerable(Of TSource), keySelector As Func(Of TSource, TKey), elementSelector As Func(Of TSource, TValue)) As ImmutableSortedDictionary(Of TKey, TValue)
Parámetros de tipo
- TSource
Tipo de los elementos de la secuencia.The type of the elements in the sequence.
- TKey
Tipo de las claves del diccionario resultante.The type of the keys in the resulting dictionary.
- TValue
Tipo de los valores del diccionario resultante.The type of the values in the resulting dictionary.
Parámetros
- source
- IEnumerable<TSource>
Secuencia a enumerar para generar el diccionario.The sequence to enumerate to generate the dictionary.
- keySelector
- Func<TSource,TKey>
Función que generará la clave del diccionario desde cada elemento de la secuencia.The function that will produce the key for the dictionary from each sequence element.
- elementSelector
- Func<TSource,TValue>
Función que generará el valor del diccionario desde cada elemento de la secuencia.The function that will produce the value for the dictionary from each sequence element.
Devoluciones
Diccionario ordenado inmutable que contiene los elementos en la secuencia especificada.An immutable sorted dictionary that contains the items in the specified sequence.
Se aplica a
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>)
Enumera y transforma una secuencia y genera un diccionario ordenado inmutable de su contenido mediante el comparador de claves especificado.Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer.
public:
generic <typename TSource, typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutableSortedDictionary(System::Collections::Generic::IEnumerable<TSource> ^ source, Func<TSource, TKey> ^ keySelector, Func<TSource, TValue> ^ elementSelector, System::Collections::Generic::IComparer<TKey> ^ keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TSource,TKey,TValue> (this System.Collections.Generic.IEnumerable<TSource> source, Func<TSource,TKey> keySelector, Func<TSource,TValue> elementSelector, System.Collections.Generic.IComparer<TKey> keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TSource,TKey,TValue> (this System.Collections.Generic.IEnumerable<TSource> source, Func<TSource,TKey> keySelector, Func<TSource,TValue> elementSelector, System.Collections.Generic.IComparer<TKey>? keyComparer);
static member ToImmutableSortedDictionary : seq<'Source> * Func<'Source, 'Key> * Func<'Source, 'Value> * System.Collections.Generic.IComparer<'Key> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
<Extension()>
Public Function ToImmutableSortedDictionary(Of TSource, TKey, TValue) (source As IEnumerable(Of TSource), keySelector As Func(Of TSource, TKey), elementSelector As Func(Of TSource, TValue), keyComparer As IComparer(Of TKey)) As ImmutableSortedDictionary(Of TKey, TValue)
Parámetros de tipo
- TSource
Tipo de los elementos de la secuencia.The type of the elements in the sequence.
- TKey
Tipo de las claves del diccionario resultante.The type of the keys in the resulting dictionary.
- TValue
Tipo de los valores del diccionario resultante.The type of the values in the resulting dictionary.
Parámetros
- source
- IEnumerable<TSource>
Secuencia a enumerar para generar el diccionario.The sequence to enumerate to generate the dictionary.
- keySelector
- Func<TSource,TKey>
Función que generará la clave del diccionario desde cada elemento de la secuencia.The function that will produce the key for the dictionary from each sequence element.
- elementSelector
- Func<TSource,TValue>
Función que generará el valor del diccionario desde cada elemento de la secuencia.The function that will produce the value for the dictionary from each sequence element.
- keyComparer
- IComparer<TKey>
Comparador de claves que se utilizará para el diccionario.The key comparer to use for the dictionary.
Devoluciones
Diccionario inmutable que contiene los elementos en la secuencia especificada.An immutable dictionary that contains the items in the specified sequence.
Se aplica a
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>)
Enumera y transforma una secuencia y genera un diccionario ordenador inmutable de su contenido mediante el comparador de claves y valores especificado.Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.
public:
generic <typename TSource, typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutableSortedDictionary(System::Collections::Generic::IEnumerable<TSource> ^ source, Func<TSource, TKey> ^ keySelector, Func<TSource, TValue> ^ elementSelector, System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TSource,TKey,TValue> (this System.Collections.Generic.IEnumerable<TSource> source, Func<TSource,TKey> keySelector, Func<TSource,TValue> elementSelector, System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutableSortedDictionary<TSource,TKey,TValue> (this System.Collections.Generic.IEnumerable<TSource> source, Func<TSource,TKey> keySelector, Func<TSource,TValue> elementSelector, System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);
static member ToImmutableSortedDictionary : seq<'Source> * Func<'Source, 'Key> * Func<'Source, 'Value> * System.Collections.Generic.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
<Extension()>
Public Function ToImmutableSortedDictionary(Of TSource, TKey, TValue) (source As IEnumerable(Of TSource), keySelector As Func(Of TSource, TKey), elementSelector As Func(Of TSource, TValue), keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue)) As ImmutableSortedDictionary(Of TKey, TValue)
Parámetros de tipo
- TSource
Tipo de los elementos de la secuencia.The type of the elements in the sequence.
- TKey
Tipo de las claves del diccionario resultante.The type of the keys in the resulting dictionary.
- TValue
Tipo de los valores del diccionario resultante.The type of the values in the resulting dictionary.
Parámetros
- source
- IEnumerable<TSource>
Secuencia a enumerar para generar el diccionario.The sequence to enumerate to generate the dictionary.
- keySelector
- Func<TSource,TKey>
Función que generará la clave del diccionario desde cada elemento de la secuencia.The function that will produce the key for the dictionary from each sequence element.
- elementSelector
- Func<TSource,TValue>
Función que generará el valor del diccionario desde cada elemento de la secuencia.The function that will produce the value for the dictionary from each sequence element.
- keyComparer
- IComparer<TKey>
Comparador de claves que se utilizará para el diccionario.The key comparer to use for the dictionary.
- valueComparer
- IEqualityComparer<TValue>
Comparador de valor que se usará para el diccionario.The value comparer to use for the dictionary.
Devoluciones
Diccionario ordenado inmutable que contiene los elementos en la secuencia especificada.An immutable sorted dictionary that contains the items in the specified sequence.