ImmutableDictionary.CreateRange メソッド

定義

オーバーロード

名前 説明
CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)

指定した項目を含む新しい変更できないディクショナリを作成します。

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)

指定した項目を含み、指定したキー比較子を使用する新しい変更できないディクショナリを作成します。

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)

指定した項目を含み、指定したキー比較子を使用する新しい変更できないディクショナリを作成します。

CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)

ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs

指定した項目を含む新しい変更できないディクショナリを作成します。

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

型パラメーター

TKey

ディクショナリ内のキーの種類。

TValue

ディクショナリ内の値の型。

パラメーター

items
IEnumerable<KeyValuePair<TKey,TValue>>

変更できない前にディクショナリを設定するために使用される項目。

返品

指定した項目を含む新しい変更できないディクショナリ。

適用対象

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)

ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs

指定した項目を含み、指定したキー比較子を使用する新しい変更できないディクショナリを作成します。

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IEqualityComparer<'Key> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

型パラメーター

TKey

ディクショナリ内のキーの種類。

TValue

ディクショナリ内の値の型。

パラメーター

keyComparer
IEqualityComparer<TKey>

キーの等価性を比較するために使用する比較子の実装。

items
IEnumerable<KeyValuePair<TKey,TValue>>

変更できない前にディクショナリに追加する項目。

返品

指定した項目を含み、指定した比較子を使用する新しい変更できないディクショナリ。

適用対象

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)

ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs
ソース:
ImmutableDictionary.cs

指定した項目を含み、指定したキー比較子を使用する新しい変更できないディクショナリを作成します。

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IEqualityComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

型パラメーター

TKey

ディクショナリ内のキーの種類。

TValue

ディクショナリ内の値の型。

パラメーター

keyComparer
IEqualityComparer<TKey>

キーの等価性を比較するために使用する比較子の実装。

valueComparer
IEqualityComparer<TValue>

等価性の値を比較するために使用する比較子の実装。

items
IEnumerable<KeyValuePair<TKey,TValue>>

変更できない前にディクショナリに追加する項目。

返品

指定した項目を含み、指定した比較子を使用する新しい変更できないディクショナリ。

適用対象