英語で読む

次の方法で共有


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

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

public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector);

型パラメーター

TKey

キーの型。

T

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

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリの作成元となる配列。

keySelector
Func<T,TKey>

キー セレクター。

戻り値

Dictionary<TKey,T>

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0

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

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

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

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);

型パラメーター

TKey

キーの型。

T

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

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリの作成元となる配列。

keySelector
Func<T,TKey>

キー セレクター。

comparer
IEqualityComparer<TKey>

ディクショナリの初期化に使用する比較子。

戻り値

Dictionary<TKey,T>

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0

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

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

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

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);

型パラメーター

TKey

キーの型。

TElement

要素の型。

T

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

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリの作成元となる配列。

keySelector
Func<T,TKey>

キー セレクター。

elementSelector
Func<T,TElement>

要素セレクター。

comparer
IEqualityComparer<TKey>

ディクショナリの初期化に使用する比較子。

戻り値

Dictionary<TKey,TElement>

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0

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

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

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

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);

型パラメーター

TKey

キーの型。

TElement

要素の型。

T

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

パラメーター

immutableArray
ImmutableArray<T>

ディクショナリの作成元となる配列。

keySelector
Func<T,TKey>

キー セレクター。

elementSelector
Func<T,TElement>

要素セレクター。

戻り値

Dictionary<TKey,TElement>

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0