Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method TrimExcess

    TrimExcess()

    Sets the capacity of the map to what it would be if it had been originally initialized with all its current entries.

    Declaration
    public void TrimExcess()

    TrimExcess(int)

    Sets the capacity of the map to hold the specified number of associations without any further expansion of its backing storage.

    Declaration
    public void TrimExcess(int capacity)
    Parameters
    Type Name Description
    int capacity

    The new capacity.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    The specified capacity is less than the number of associations in the map.

    © Singulink. All rights reserved.