ImmutableDictionary.CreateBuilder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateBuilder<TKey,TValue>() |
Creates a new immutable dictionary builder. |
CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>) |
Creates a new immutable dictionary builder. |
CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>) |
Creates a new immutable dictionary builder. |
CreateBuilder<TKey,TValue>()
- Source:
- ImmutableDictionary.cs
- Source:
- ImmutableDictionary.cs
- Source:
- ImmutableDictionary.cs
Creates a new immutable dictionary builder.
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
Type Parameters
- TKey
The type of keys stored by the dictionary.
- TValue
The type of values stored by the dictionary.
Returns
The new builder.
Applies to
CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>)
- Source:
- ImmutableDictionary.cs
- Source:
- ImmutableDictionary.cs
- Source:
- ImmutableDictionary.cs
Creates a new immutable dictionary builder.
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
Type Parameters
- TKey
The type of keys stored by the dictionary.
- TValue
The type of values stored by the dictionary.
Parameters
- keyComparer
- IEqualityComparer<TKey>
The key comparer.
Returns
The new builder.
Applies to
CreateBuilder<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>)
- Source:
- ImmutableDictionary.cs
- Source:
- ImmutableDictionary.cs
- Source:
- ImmutableDictionary.cs
Creates a new immutable dictionary builder.
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
Type Parameters
- TKey
The type of keys stored by the dictionary.
- TValue
The type of values stored by the dictionary.
Parameters
- keyComparer
- IEqualityComparer<TKey>
The key comparer.
- valueComparer
- IEqualityComparer<TValue>
The value comparer.
Returns
The new builder.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈