Share via


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

指定された項目を格納する、新しい変更できないディクショナリを作成します。

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

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

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

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

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

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

戻り値

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

適用対象