Method Clear
Clear()
Removes all nodes from the list.
Declaration
public void Clear()
Remarks
Nodes are removed one at a time, so this operation takes O(n) time. Dispose() is faster if the list will not be used again.
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The list has been disposed. |