ImmutableDictionary.CreateBuilder Method

Definition

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
Source:
ImmutableDictionary.cs

Creates a new immutable dictionary builder.

C#
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue>();

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

.NET 10 ja muut versiot
Tuote Versiot
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

Creates a new immutable dictionary builder.

C#
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey> keyComparer);
C#
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey>? keyComparer);

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

.NET 10 ja muut versiot
Tuote Versiot
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

Creates a new immutable dictionary builder.

C#
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
C#
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue>(System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);

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

.NET 10 ja muut versiot
Tuote Versiot
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0