共用方式為


ImmutableSortedDictionary.Create 方法

定義

多載

Create<TKey,TValue>()

建立空白、不可變的排序字典。

Create<TKey,TValue>(IComparer<TKey>)

建立空白、不可變的排序字典,該字典會使用指定的索引鍵比較子。

Create<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>)

建立空白、不可變的排序字典,該字典會使用指定的索引鍵與值比較子。

Create<TKey,TValue>()

來源:
ImmutableSortedDictionary.cs
來源:
ImmutableSortedDictionary.cs
來源:
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>)

來源:
ImmutableSortedDictionary.cs
來源:
ImmutableSortedDictionary.cs
來源:
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>)

來源:
ImmutableSortedDictionary.cs
來源:
ImmutableSortedDictionary.cs
來源:
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>

用於判斷字典中的值是否相等的實作。

傳回

空白、不可變的排序字典。

適用於