Currency Currency
Currency Currency
DocFX + Singulink = ♥

Search Results for

    Constructor SortedMoneyBag

    SortedMoneyBag()

    Initializes a new instance of the SortedMoneyBag class with the Default currency registry.

    Declaration
    public SortedMoneyBag()

    SortedMoneyBag(CurrencyRegistry)

    Initializes a new instance of the SortedMoneyBag class with the specified currency registry.

    Declaration
    public SortedMoneyBag(CurrencyRegistry registry)
    Parameters
    Type Name Description
    CurrencyRegistry registry
    Exceptions
    Type Condition
    ArgumentException

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

    SortedMoneyBag(IEnumerable<MonetaryValue>)

    Initializes a new instance of the MoneyBag class with the Default currency registry and adds all the specified values.

    Declaration
    public SortedMoneyBag(IEnumerable<MonetaryValue> values)
    Parameters
    Type Name Description
    IEnumerable<MonetaryValue> values
    Exceptions
    Type Condition
    ArgumentException

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

    SortedMoneyBag(CurrencyRegistry, IEnumerable<MonetaryValue>)

    Initializes a new instance of the MoneyBag class with the specified currency registry and adds all the specified values.

    Declaration
    public SortedMoneyBag(CurrencyRegistry registry, IEnumerable<MonetaryValue> values)
    Parameters
    Type Name Description
    CurrencyRegistry registry
    IEnumerable<MonetaryValue> values
    Exceptions
    Type Condition
    ArgumentException

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

    SortedMoneyBag(params MonetaryValue[])

    Initializes a new instance of the MoneyBag class with the Default currency registry and adds all the specified values.

    Declaration
    public SortedMoneyBag(params MonetaryValue[] values)
    Parameters
    Type Name Description
    MonetaryValue[] values
    Exceptions
    Type Condition
    ArgumentException

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

    SortedMoneyBag(CurrencyRegistry, params MonetaryValue[])

    Initializes a new instance of the MoneyBag class with the specified currency registry and adds all the specified values.

    Declaration
    public SortedMoneyBag(CurrencyRegistry registry, params MonetaryValue[] values)
    Parameters
    Type Name Description
    CurrencyRegistry registry
    MonetaryValue[] values
    Exceptions
    Type Condition
    ArgumentException

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

    SortedMoneyBag(ReadOnlySpan<MonetaryValue>)

    Initializes a new instance of the SortedMoneyBag class with the Default currency registry and adds all the specified values.

    Declaration
    public SortedMoneyBag(ReadOnlySpan<MonetaryValue> values)
    Parameters
    Type Name Description
    ReadOnlySpan<MonetaryValue> values
    Exceptions
    Type Condition
    ArgumentException

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

    SortedMoneyBag(CurrencyRegistry, ReadOnlySpan<MonetaryValue>)

    Initializes a new instance of the SortedMoneyBag class with the specified currency registry and adds all the specified values.

    Declaration
    public SortedMoneyBag(CurrencyRegistry registry, ReadOnlySpan<MonetaryValue> values)
    Parameters
    Type Name Description
    CurrencyRegistry registry
    ReadOnlySpan<MonetaryValue> values
    Exceptions
    Type Condition
    ArgumentException

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

    © Singulink. All rights reserved.