Adds an element with the provided key and value to the IDictionary TKey, TValue .
Namespace: ElecNetKit.NetworkModelling.PhasingAssembly: ElecNetKit.Core (in ElecNetKit.Core.dll) Version: 1.1.4771.27370 (1.1.0.0)
Syntax
Parameters
- key
- Type: System Int32
The object to use as the key of the element to add.
- value
- Type: TTo
The object to use as the value of the element to add.
Implements
IDictionary TKey, TValue Add(TKey, TValue)Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | key is null. |
System ArgumentException | An element with the same key already exists in the IDictionary TKey, TValue . |
System NotSupportedException | The IDictionary TKey, TValue is read-only. |
See Also