ImmutableSortedDictionary.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create<TKey,TValue>() |
创建一个空的不可变排序字典。 |
Create<TKey,TValue>(IComparer<TKey>) |
创建使用指定键比较器的空不可变排序字典。 |
Create<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>) |
创建使用指定键和值比较器的空不可变排序字典。 |
Create<TKey,TValue>()
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
创建一个空的不可变排序字典。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ Create();
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> Create<TKey,TValue> ();
static member Create : unit -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function Create(Of TKey, TValue) () As ImmutableSortedDictionary(Of TKey, TValue)
类型参数
- TKey
字典存储的键的类型。
- TValue
字典存储的值的类型。
返回
空的不可变排序字典。
适用于
Create<TKey,TValue>(IComparer<TKey>)
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
创建使用指定键比较器的空不可变排序字典。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ Create(System::Collections::Generic::IComparer<TKey> ^ keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> Create<TKey,TValue> (System.Collections.Generic.IComparer<TKey> keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> Create<TKey,TValue> (System.Collections.Generic.IComparer<TKey>? keyComparer);
static member Create : System.Collections.Generic.IComparer<'Key> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function Create(Of TKey, TValue) (keyComparer As IComparer(Of TKey)) As ImmutableSortedDictionary(Of TKey, TValue)
类型参数
- TKey
字典存储的键的类型。
- TValue
字典存储的值的类型。
参数
- keyComparer
- IComparer<TKey>
用于确定字典中键的相等性的实现。
返回
空的不可变排序字典。
适用于
Create<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>)
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
- Source:
- ImmutableSortedDictionary.cs
创建使用指定键和值比较器的空不可变排序字典。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ Create(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> Create<TKey,TValue> (System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> Create<TKey,TValue> (System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);
static member Create : System.Collections.Generic.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function Create(Of TKey, TValue) (keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue)) As ImmutableSortedDictionary(Of TKey, TValue)
类型参数
- TKey
字典存储的键的类型。
- TValue
字典存储的值的类型。
参数
- keyComparer
- IComparer<TKey>
用于确定字典中键的相等性的实现。
- valueComparer
- IEqualityComparer<TValue>
用于确定字典中值的相等性的实现。
返回
空的不可变排序字典。