Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method TrimExcess

    TrimExcess()

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

    Declaration
    public void TrimExcess()

    TrimExcess(int)

    Sets the capacity of this map to hold up a specified number of entries 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

    Capacity specified is less than the number of entries in the map.

    © Singulink. All rights reserved.