共用方式為


ImmutableDictionary.CreateBuilder 方法

定義

多載

CreateBuilder<TKey,TValue>()

建立新的不可變字典產生器。

CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>)

建立新的不可變字典產生器。

CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>)

建立新的不可變字典產生器。

CreateBuilder<TKey,TValue>()

來源:
ImmutableDictionary.cs
來源:
ImmutableDictionary.cs
來源:
ImmutableDictionary.cs

建立新的不可變字典產生器。

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue>::Builder ^ CreateBuilder();
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> ();
static member CreateBuilder : unit -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>.Builder
Public Function CreateBuilder(Of TKey, TValue) () As ImmutableDictionary(Of TKey, TValue).Builder

類型參數

TKey

字典所儲存的索引鍵類型。

TValue

字典所儲存的值類型。

傳回

新的產生器。

適用於

CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>)

來源:
ImmutableDictionary.cs
來源:
ImmutableDictionary.cs
來源:
ImmutableDictionary.cs

建立新的不可變字典產生器。

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue>::Builder ^ CreateBuilder(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey> keyComparer);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey>? keyComparer);
static member CreateBuilder : System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>.Builder
Public Function CreateBuilder(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey)) As ImmutableDictionary(Of TKey, TValue).Builder

類型參數

TKey

字典所儲存的索引鍵類型。

TValue

字典所儲存的值類型。

參數

keyComparer
IEqualityComparer<TKey>

索引鍵比較子。

傳回

新的產生器。

適用於

CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>)

來源:
ImmutableDictionary.cs
來源:
ImmutableDictionary.cs
來源:
ImmutableDictionary.cs

建立新的不可變字典產生器。

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue>::Builder ^ CreateBuilder(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);
static member CreateBuilder : System.Collections.Generic.IEqualityComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>.Builder
Public Function CreateBuilder(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue)) As ImmutableDictionary(Of TKey, TValue).Builder

類型參數

TKey

字典所儲存的索引鍵類型。

TValue

字典所儲存的值類型。

參數

keyComparer
IEqualityComparer<TKey>

索引鍵比較子。

valueComparer
IEqualityComparer<TValue>

值比較子。

傳回

新的產生器。

適用於