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>>)
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
创建包含指定项并使用默认比较器的不可变排序字典。
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>>)
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
使用指定的键比较器从指定的项范围创建新的不可变排序字典。
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>>)
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
使用指定的键和值比较器从指定的项范围创建新的不可变排序字典。
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>>
在排序字典不可变之前要添加到该字典中的项。
返回
包含指定项并使用指定比较器的不可变排序字典。