ImmutableDictionary<TKey,TValue>.Builder.Add ImmutableDictionary<TKey,TValue>.Builder.Add ImmutableDictionary<TKey,TValue>.Builder.Add ImmutableDictionary<TKey,TValue>.Builder.Add Method

Definition

Overloads

Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>)

Adds the specified item to the immutable dictionary.

Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds an element that has the specified key and value to the immutable dictionary.

Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>)

Adds the specified item to the immutable dictionary.

public:
 virtual void Add(System::Collections::Generic::KeyValuePair<TKey, TValue> item);
public void Add (System.Collections.Generic.KeyValuePair<TKey,TValue> item);
abstract member Add : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> unit
Public Sub Add (item As KeyValuePair(Of TKey, TValue))

Parameters

Implements

Exceptions

Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds an element that has the specified key and value to the immutable dictionary.

public:
 virtual void Add(TKey key, TValue value);
public void Add (TKey key, TValue value);
abstract member Add : 'Key * 'Value -> unit
override this.Add : 'Key * 'Value -> unit
Public Sub Add (key As TKey, value As TValue)

Parameters

key
TKey TKey TKey TKey

The key of the element to add.

value
TValue TValue TValue TValue

The value of the element to add.

Implements

Exceptions

An element with the same key already exists in the dictionary.

Applies to