Dictionary<(Of <(<'TKey1, TKey2, TValue>)>)>..::..Add Method (ValueTuple<(Of <(<'TKey1, TKey2>)>)>, TValue)

Adds an element with the provided key and value to the [IDictionary{TKey,TValue}].

Namespace:  Tortuga.Anchor.Collections
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public void Add(
	ValueTuple<TKey1, TKey2> key,
	TValue value
)
Public Sub Add ( _
	key As ValueTuple(Of TKey1, TKey2), _
	value As TValue _
)

Parameters

key
Type: ValueTuple<(Of <(<'TKey1, TKey2>)>)>
The object to use as the key of the element to add.
value
Type: TValue
The object to use as the value of the element to add.

Exceptions


ExceptionCondition
[ArgumentNullException]key is null.
[ArgumentException] An element with the same key already exists in the [IDictionary{TKey,TValue}].