Method Dispose
Dispose()
Removes all nodes from the list and prevents further use. Most members throw ObjectDisposedException afterwards, and existing enumerators return no further values.
Declaration
public void Dispose()
Implements
Remarks
Disposing is faster than Clear() and should be preferred for lists that will not be used again, since it also avoids the cost of finalizing the list.