Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method EnsureCapacity

    EnsureCapacity(int)

    Ensures that the map can hold the specified number of associations without any further expansion of its backing storage.

    Declaration
    public int EnsureCapacity(int capacity)
    Parameters
    Type Name Description
    int capacity

    The minimum number of associations the map should be able to hold without resizing.

    Returns
    Type Description
    int

    The new capacity of the map.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    The specified capacity is less than 0.

    © Singulink. All rights reserved.