Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method Dispose

    Dispose()

    Removes all entries from the dictionary and prevents further use. Most members throw ObjectDisposedException afterwards.

    Declaration
    public void Dispose()
    Implements
    IDisposable.Dispose()
    Remarks

    Disposing is faster than Clear() and should be preferred for dictionaries that will not be used again, since it also avoids the cost of finalizing the dictionary.

    © Singulink. All rights reserved.