Udostępnij za pośrednictwem


ImmutableArrayExtensions.ToDictionary Metoda

Definicja

Przeciążenia

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

Tworzy słownik na podstawie zawartości tej tablicy.

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

Tworzy słownik na podstawie zawartości tej tablicy.

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

Tworzy słownik na podstawie zawartości tej tablicy.

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

Tworzy słownik na podstawie zawartości tej tablicy.

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

Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs

Tworzy słownik na podstawie zawartości tej tablicy.

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)

Parametry typu

TKey

Typ klucza.

T

Typ elementu zawartego w kolekcji.

Parametry

immutableArray
ImmutableArray<T>

Tablica do utworzenia słownika.

keySelector
Func<T,TKey>

Selektor kluczy.

Zwraca

Dictionary<TKey,T>

Nowo zainicjowany słownik.

Dotyczy

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

Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs

Tworzy słownik na podstawie zawartości tej tablicy.

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)

Parametry typu

TKey

Typ klucza.

T

Typ elementu zawartego w kolekcji.

Parametry

immutableArray
ImmutableArray<T>

Tablica do utworzenia słownika.

keySelector
Func<T,TKey>

Selektor kluczy.

comparer
IEqualityComparer<TKey>

Porównanie do inicjowania słownika za pomocą polecenia .

Zwraca

Dictionary<TKey,T>

Nowo zainicjowany słownik.

Dotyczy

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

Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs

Tworzy słownik na podstawie zawartości tej tablicy.

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)

Parametry typu

TKey

Typ klucza.

TElement

Typ elementu.

T

Typ elementu zawartego w kolekcji.

Parametry

immutableArray
ImmutableArray<T>

Tablica do utworzenia słownika.

keySelector
Func<T,TKey>

Selektor kluczy.

elementSelector
Func<T,TElement>

Selektor elementów.

comparer
IEqualityComparer<TKey>

Porównanie do inicjowania słownika za pomocą polecenia .

Zwraca

Dictionary<TKey,TElement>

Nowo zainicjowany słownik.

Dotyczy

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

Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs
Źródło:
ImmutableArrayExtensions.cs

Tworzy słownik na podstawie zawartości tej tablicy.

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)

Parametry typu

TKey

Typ klucza.

TElement

Typ elementu.

T

Typ elementu zawartego w kolekcji.

Parametry

immutableArray
ImmutableArray<T>

Tablica do utworzenia słownika.

keySelector
Func<T,TKey>

Selektor kluczy.

elementSelector
Func<T,TElement>

Selektor elementów.

Zwraca

Dictionary<TKey,TElement>

Nowo zainicjowany słownik.

Dotyczy