ImmutableArrayExtensions.ToDictionary メソッド

定義

オーバーロード

名前 説明
ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>)

この配列の内容に基づいてディクショナリを作成します。

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

この配列の内容に基づいてディクショナリを作成します。

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

この配列の内容に基づいてディクショナリを作成します。

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

この配列の内容に基づいてディクショナリを作成します。

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

ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs

この配列の内容に基づいてディクショナリを作成します。

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)

型パラメーター

TKey

キーの型。

T

コレクションに含まれる要素の型。

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリを作成する配列。

keySelector
Func<T,TKey>

キー セレクター。

返品

Dictionary<TKey,T>

新しく初期化されたディクショナリ。

適用対象

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

ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs

この配列の内容に基づいてディクショナリを作成します。

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)

型パラメーター

TKey

キーの型。

T

コレクションに含まれる要素の型。

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリを作成する配列。

keySelector
Func<T,TKey>

キー セレクター。

comparer
IEqualityComparer<TKey>

ディクショナリを初期化する比較子。

返品

Dictionary<TKey,T>

新しく初期化されたディクショナリ。

適用対象

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

ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs

この配列の内容に基づいてディクショナリを作成します。

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)

型パラメーター

TKey

キーの型。

TElement

要素の型。

T

コレクションに含まれる要素の型。

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリを作成する配列。

keySelector
Func<T,TKey>

キー セレクター。

elementSelector
Func<T,TElement>

要素セレクター。

comparer
IEqualityComparer<TKey>

ディクショナリを初期化する比較子。

返品

Dictionary<TKey,TElement>

新しく初期化されたディクショナリ。

適用対象

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

ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs
ソース:
ImmutableArrayExtensions.cs

この配列の内容に基づいてディクショナリを作成します。

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)

型パラメーター

TKey

キーの型。

TElement

要素の型。

T

コレクションに含まれる要素の型。

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリを作成する配列。

keySelector
Func<T,TKey>

キー セレクター。

elementSelector
Func<T,TElement>

要素セレクター。

返品

Dictionary<TKey,TElement>

新しく初期化されたディクショナリ。

適用対象