ImmutableArrayExtensions.ToDictionary Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>) |
Crée un dictionnaire basé sur le contenu de ce tableau. |
| ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>, IEqualityComparer<TKey>) |
Crée un dictionnaire basé sur le contenu de ce tableau. |
| ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>) |
Crée un dictionnaire basé sur le contenu de ce tableau. |
| ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>) |
Crée un dictionnaire basé sur le contenu de ce tableau. |
ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>)
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
Crée un dictionnaire basé sur le contenu de ce tableau.
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);
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)
Paramètres de type
- TKey
Type de la clé.
- T
Type d’élément contenu par la collection.
Paramètres
- immutableArray
- ImmutableArray<T>
Tableau à partir duquel créer un dictionnaire.
- keySelector
- Func<T,TKey>
Sélecteur de clé.
Retours
Dictionnaire nouvellement initialisé.
S’applique à
ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>, IEqualityComparer<TKey>)
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
Crée un dictionnaire basé sur le contenu de ce tableau.
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)
Paramètres de type
- TKey
Type de la clé.
- T
Type d’élément contenu par la collection.
Paramètres
- immutableArray
- ImmutableArray<T>
Tableau à partir duquel créer un dictionnaire.
- keySelector
- Func<T,TKey>
Sélecteur de clé.
- comparer
- IEqualityComparer<TKey>
Comparateur avec qui initialiser le dictionnaire.
Retours
Dictionnaire nouvellement initialisé.
S’applique à
ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>)
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
Crée un dictionnaire basé sur le contenu de ce tableau.
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)
Paramètres de type
- TKey
Type de la clé.
- TElement
Type de l’élément.
- T
Type d’élément contenu par la collection.
Paramètres
- immutableArray
- ImmutableArray<T>
Tableau à partir duquel créer un dictionnaire.
- keySelector
- Func<T,TKey>
Sélecteur de clé.
- elementSelector
- Func<T,TElement>
Sélecteur d’élément.
- comparer
- IEqualityComparer<TKey>
Comparateur avec qui initialiser le dictionnaire.
Retours
Dictionnaire nouvellement initialisé.
S’applique à
ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>)
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
Crée un dictionnaire basé sur le contenu de ce tableau.
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);
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)
Paramètres de type
- TKey
Type de la clé.
- TElement
Type de l’élément.
- T
Type d’élément contenu par la collection.
Paramètres
- immutableArray
- ImmutableArray<T>
Tableau à partir duquel créer un dictionnaire.
- keySelector
- Func<T,TKey>
Sélecteur de clé.
- elementSelector
- Func<T,TElement>
Sélecteur d’élément.
Retours
Dictionnaire nouvellement initialisé.