Method ICollection<T>.Remove
ICollection<T>.Remove(T)
Removes the first occurrence of a specific object from the ICollection<T>.
Declaration
bool ICollection<T>.Remove(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The object to remove from the ICollection<T>. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Implements
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |