Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    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
    IDisposable.Dispose()
    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.

    © Singulink. All rights reserved.