ImmutableArrayExtensions.ToDictionary Metodo

Definizione

Overload

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>, IEqualityComparer<TKey>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

public:
generic <typename TKey, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, T> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector);
public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector);
public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T>? immutableArray, Func<T,TKey> keySelector);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> -> System.Collections.Generic.Dictionary<'Key, 'T>
<Extension()>
Public Function ToDictionary(Of TKey, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey)) As Dictionary(Of TKey, T)

Parametri di tipo

TKey

Tipo di chiave.The type of the key.

T

Tipo di elemento contenuto dalla raccolta.The type of element contained by the collection.

Parametri

immutableArray
ImmutableArray<T>

Matrice da cui creare un dizionario.The array to create a dictionary from.

keySelector
Func<T,TKey>

Selettore di chiave.The key selector.

Restituisce

Dictionary<TKey,T>

Dizionario appena inizializzato.The newly initialized dictionary.

Si applica a

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>, IEqualityComparer<TKey>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

public:
generic <typename TKey, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, T> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T>? immutableArray, Func<T,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.Dictionary<'Key, 'T>
<Extension()>
Public Function ToDictionary(Of TKey, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey), comparer As IEqualityComparer(Of TKey)) As Dictionary(Of TKey, T)

Parametri di tipo

TKey

Tipo di chiave.The type of the key.

T

Tipo di elemento contenuto dalla raccolta.The type of element contained by the collection.

Parametri

immutableArray
ImmutableArray<T>

Matrice da cui creare un dizionario.The array to create a dictionary from.

keySelector
Func<T,TKey>

Selettore di chiave.The key selector.

comparer
IEqualityComparer<TKey>

Operatore di confronto con cui inizializzare il dizionario.The comparer to initialize the dictionary with.

Restituisce

Dictionary<TKey,T>

Dizionario appena inizializzato.The newly initialized dictionary.

Si applica a

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

public:
generic <typename TKey, typename TElement, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, TElement> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector, Func<T, TElement> ^ elementSelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Collections.Generic.Dictionary<TKey,TElement> ToDictionary<TKey,TElement,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, Func<T,TElement> elementSelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
public static System.Collections.Generic.Dictionary<TKey,TElement> ToDictionary<TKey,TElement,T> (this System.Collections.Immutable.ImmutableArray<T>? immutableArray, Func<T,TKey> keySelector, Func<T,TElement> elementSelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> * Func<'T, 'Element> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.Dictionary<'Key, 'Element>
<Extension()>
Public Function ToDictionary(Of TKey, TElement, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey), elementSelector As Func(Of T, TElement), comparer As IEqualityComparer(Of TKey)) As Dictionary(Of TKey, TElement)

Parametri di tipo

TKey

Tipo di chiave.The type of the key.

TElement

Tipo dell'elemento.The type of the element.

T

Tipo di elemento contenuto dalla raccolta.The type of element contained by the collection.

Parametri

immutableArray
ImmutableArray<T>

Matrice da cui creare un dizionario.The array to create a dictionary from.

keySelector
Func<T,TKey>

Selettore di chiave.The key selector.

elementSelector
Func<T,TElement>

Selettore di elemento.The element selector.

comparer
IEqualityComparer<TKey>

Operatore di confronto con cui inizializzare il dizionario.The comparer to initialize the dictionary with.

Restituisce

Dictionary<TKey,TElement>

Dizionario appena inizializzato.The newly initialized dictionary.

Si applica a

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>)

Crea un dizionario basato sul contenuto di questa matrice.Creates a dictionary based on the contents of this array.

public:
generic <typename TKey, typename TElement, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, TElement> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector, Func<T, TElement> ^ elementSelector);
public static System.Collections.Generic.Dictionary<TKey,TElement> ToDictionary<TKey,TElement,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, Func<T,TElement> elementSelector);
public static System.Collections.Generic.Dictionary<TKey,TElement> ToDictionary<TKey,TElement,T> (this System.Collections.Immutable.ImmutableArray<T>? immutableArray, Func<T,TKey> keySelector, Func<T,TElement> elementSelector);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> * Func<'T, 'Element> -> System.Collections.Generic.Dictionary<'Key, 'Element>
<Extension()>
Public Function ToDictionary(Of TKey, TElement, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey), elementSelector As Func(Of T, TElement)) As Dictionary(Of TKey, TElement)

Parametri di tipo

TKey

Tipo di chiave.The type of the key.

TElement

Tipo dell'elemento.The type of the element.

T

Tipo di elemento contenuto dalla raccolta.The type of element contained by the collection.

Parametri

immutableArray
ImmutableArray<T>

Matrice da cui creare un dizionario.The array to create a dictionary from.

keySelector
Func<T,TKey>

Selettore di chiave.The key selector.

elementSelector
Func<T,TElement>

Selettore di elemento.The element selector.

Restituisce

Dictionary<TKey,TElement>

Dizionario appena inizializzato.The newly initialized dictionary.

Si applica a