Method ICollection<T>.Add
ICollection<T>.Add(T)
Adds an item to the ICollection<T>.
Declaration
void ICollection<T>.Add(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The object to add to the ICollection<T>. |
Implements
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |