Currency Currency
Currency Currency
DocFX + Singulink = ♥

Search Results for

    Method CreateRange

    CreateRange(IEnumerable<MonetaryValue>)

    Creates an immutable money bag that uses the Default currency registry and adds all the specified values.

    Declaration
    public static ImmutableMoneyBag CreateRange(IEnumerable<MonetaryValue> values)
    Parameters
    Type Name Description
    IEnumerable<MonetaryValue> values
    Returns
    Type Description
    ImmutableMoneyBag
    Exceptions
    Type Condition
    ArgumentException

    Attempted to add a value with a currency that is not available in the currency registry.

    CreateRange(CurrencyRegistry, IEnumerable<MonetaryValue>)

    Creates an immutable money bag that uses the specified currency registry and adds all the specified values.

    Declaration
    public static ImmutableMoneyBag CreateRange(CurrencyRegistry registry, IEnumerable<MonetaryValue> values)
    Parameters
    Type Name Description
    CurrencyRegistry registry
    IEnumerable<MonetaryValue> values
    Returns
    Type Description
    ImmutableMoneyBag
    Exceptions
    Type Condition
    ArgumentException

    Attempted to add a value with a currency that is not available in the currency registry.

    © Singulink. All rights reserved.