ImmutableSortedDictionary.CreateRange メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>) |
指定した項目を含み、既定の比較子を使用する、変更できない並べ替えられたディクショナリを作成します。 |
| CreateRange<TKey,TValue>(IComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>) |
指定したキー比較子を使用して、指定した項目範囲から新しい変更できない並べ替えられたディクショナリを作成します。 |
| CreateRange<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>) |
指定したキーと値の比較子を使用して、指定した項目範囲から新しい変更できない並べ替えられたディクショナリを作成します。 |
CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)
指定した項目を含み、既定の比較子を使用する、変更できない並べ替えられたディクショナリを作成します。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<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.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)
型パラメーター
- TKey
ディクショナリに格納されているキーの種類。
- TValue
ディクショナリに格納されている値の型。
パラメーター
- items
- IEnumerable<KeyValuePair<TKey,TValue>>
変更できない前に並べ替えられたディクショナリに追加する項目。
返品
指定した項目を含む、変更できない並べ替えられたディクショナリ。
適用対象
CreateRange<TKey,TValue>(IComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)
指定したキー比較子を使用して、指定した項目範囲から新しい変更できない並べ替えられたディクショナリを作成します。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IComparer<'Key> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IComparer(Of TKey), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)
型パラメーター
- TKey
ディクショナリに格納されているキーの種類。
- TValue
ディクショナリに格納されている値の型。
パラメーター
- keyComparer
- IComparer<TKey>
キーの等価性と並べ替えを評価するために使用する比較子の実装。
- items
- IEnumerable<KeyValuePair<TKey,TValue>>
並べ替えられたディクショナリに追加する項目。
返品
指定した項目を含み、指定したキー比較子を使用する、新しい変更できない並べ替えられたディクショナリ。
適用対象
CreateRange<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)
指定したキーと値の比較子を使用して、指定した項目範囲から新しい変更できない並べ替えられたディクショナリを作成します。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue>(System.Collections.Generic.IComparer<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.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)
型パラメーター
- TKey
ディクショナリに格納されているキーの種類。
- TValue
ディクショナリに格納されている値の型。
パラメーター
- keyComparer
- IComparer<TKey>
等価性と並べ替えのためにキーを比較するために使用する比較子の実装。
- valueComparer
- IEqualityComparer<TValue>
等価性の値を比較するために使用する比較子の実装。
- items
- IEnumerable<KeyValuePair<TKey,TValue>>
変更できない前に並べ替えられたディクショナリに追加する項目。
返品
指定した項目を含み、指定した比較子を使用する、変更できない並べ替えられたディクショナリ。