ImmutableArrayExtensions.ToDictionary Methode

Definition

Überlädt

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

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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

Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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)

Typparameter

TKey

Der Typ des Schlüssels.

T

Der Typ des Elements, das in der Auflistung enthalten ist.

Parameter

immutableArray
ImmutableArray<T>

Das Array, aus dem ein Wörterbuch erstellt werden soll.

keySelector
Func<T,TKey>

Die Tastenauswahl.

Gibt zurück

Dictionary<TKey,T>

Das neu initialisierte Wörterbuch.

Gilt für:

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

Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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)

Typparameter

TKey

Der Typ des Schlüssels.

T

Der Typ des Elements, das in der Auflistung enthalten ist.

Parameter

immutableArray
ImmutableArray<T>

Das Array, aus dem ein Wörterbuch erstellt werden soll.

keySelector
Func<T,TKey>

Die Tastenauswahl.

comparer
IEqualityComparer<TKey>

Der Vergleicher, mit dem das Wörterbuch initialisiert werden soll.

Gibt zurück

Dictionary<TKey,T>

Das neu initialisierte Wörterbuch.

Gilt für:

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

Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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)

Typparameter

TKey

Der Typ des Schlüssels.

TElement

Der Typ des Elements.

T

Der Typ des Elements, das in der Auflistung enthalten ist.

Parameter

immutableArray
ImmutableArray<T>

Das Array, aus dem ein Wörterbuch erstellt werden soll.

keySelector
Func<T,TKey>

Die Tastenauswahl.

elementSelector
Func<T,TElement>

Die Elementauswahl.

comparer
IEqualityComparer<TKey>

Der Vergleicher, mit dem das Wörterbuch initialisiert werden soll.

Gibt zurück

Dictionary<TKey,TElement>

Das neu initialisierte Wörterbuch.

Gilt für:

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

Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs
Quelle:
ImmutableArrayExtensions.cs

Erstellt ein Wörterbuch basierend auf dem Inhalt dieses Arrays.

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)

Typparameter

TKey

Der Typ des Schlüssels.

TElement

Der Typ des Elements.

T

Der Typ des Elements, das in der Auflistung enthalten ist.

Parameter

immutableArray
ImmutableArray<T>

Das Array, aus dem ein Wörterbuch erstellt werden soll.

keySelector
Func<T,TKey>

Die Tastenauswahl.

elementSelector
Func<T,TElement>

Die Elementauswahl.

Gibt zurück

Dictionary<TKey,TElement>

Das neu initialisierte Wörterbuch.

Gilt für: