ImmutableArrayExtensions.ToDictionary Metod

Definition

Överlagringar

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

Skapar en ordlista baserat på innehållet i den här matrisen.

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

Skapar en ordlista baserat på innehållet i den här matrisen.

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

Skapar en ordlista baserat på innehållet i den här matrisen.

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

Skapar en ordlista baserat på innehållet i den här matrisen.

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

Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs

Skapar en ordlista baserat på innehållet i den här matrisen.

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)

Typparametrar

TKey

Typ av nyckel.

T

Typen av element som ingår i samlingen.

Parametrar

immutableArray
ImmutableArray<T>

Matrisen som du vill skapa en ordlista från.

keySelector
Func<T,TKey>

Nyckelväljaren.

Returer

Dictionary<TKey,T>

Den nyligen initierade ordlistan.

Gäller för

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

Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs

Skapar en ordlista baserat på innehållet i den här matrisen.

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)

Typparametrar

TKey

Typ av nyckel.

T

Typen av element som ingår i samlingen.

Parametrar

immutableArray
ImmutableArray<T>

Matrisen som du vill skapa en ordlista från.

keySelector
Func<T,TKey>

Nyckelväljaren.

comparer
IEqualityComparer<TKey>

Jämförelsen för att initiera ordlistan med.

Returer

Dictionary<TKey,T>

Den nyligen initierade ordlistan.

Gäller för

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

Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs

Skapar en ordlista baserat på innehållet i den här matrisen.

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)

Typparametrar

TKey

Typ av nyckel.

TElement

Typ av element.

T

Typen av element som ingår i samlingen.

Parametrar

immutableArray
ImmutableArray<T>

Matrisen som du vill skapa en ordlista från.

keySelector
Func<T,TKey>

Nyckelväljaren.

elementSelector
Func<T,TElement>

Elementväljaren.

comparer
IEqualityComparer<TKey>

Jämförelsen för att initiera ordlistan med.

Returer

Dictionary<TKey,TElement>

Den nyligen initierade ordlistan.

Gäller för

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

Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs
Källa:
ImmutableArrayExtensions.cs

Skapar en ordlista baserat på innehållet i den här matrisen.

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)

Typparametrar

TKey

Typ av nyckel.

TElement

Typ av element.

T

Typen av element som ingår i samlingen.

Parametrar

immutableArray
ImmutableArray<T>

Matrisen som du vill skapa en ordlista från.

keySelector
Func<T,TKey>

Nyckelväljaren.

elementSelector
Func<T,TElement>

Elementväljaren.

Returer

Dictionary<TKey,TElement>

Den nyligen initierade ordlistan.

Gäller för