Table of Contents

Class ValueDictionary

Namespace
Badeend.ValueCollections
Assembly
Badeend.ValueCollections.dll

Initialization methods for ValueDictionary<TKey, TValue>.

public static class ValueDictionary
Inheritance
ValueDictionary
Inherited Members

Methods

Builder<TKey, TValue>()

Create a new empty ValueDictionaryBuilder<TKey, TValue>. This builder can then be used to efficiently construct an immutable ValueDictionary<TKey, TValue>.

[Pure]
public static ValueDictionaryBuilder<TKey, TValue> Builder<TKey, TValue>() where TKey : notnull

Returns

ValueDictionaryBuilder<TKey, TValue>

Type Parameters

TKey
TValue

Builder<TKey, TValue>(ReadOnlySpan<KeyValuePair<TKey, TValue>>)

Create a new ValueDictionaryBuilder<TKey, TValue> with the provided items as its initial content.

[Pure]
public static ValueDictionaryBuilder<TKey, TValue> Builder<TKey, TValue>(ReadOnlySpan<KeyValuePair<TKey, TValue>> items) where TKey : notnull

Parameters

items ReadOnlySpan<KeyValuePair<TKey, TValue>>

Returns

ValueDictionaryBuilder<TKey, TValue>

Type Parameters

TKey
TValue

Create<TKey, TValue>(ReadOnlySpan<KeyValuePair<TKey, TValue>>)

Copy the items into a new ValueDictionary<TKey, TValue>.

[Pure]
public static ValueDictionary<TKey, TValue> Create<TKey, TValue>(ReadOnlySpan<KeyValuePair<TKey, TValue>> items) where TKey : notnull

Parameters

items ReadOnlySpan<KeyValuePair<TKey, TValue>>

Returns

ValueDictionary<TKey, TValue>

Type Parameters

TKey
TValue