Method CreateRange
CreateRange(IEnumerable<MonetaryValue>)
Creates an immutable sorted money bag that uses the Default currency registry and adds all the specified values.
Declaration
public static ImmutableSortedMoneyBag CreateRange(IEnumerable<MonetaryValue> values)
Parameters
Returns
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 sorted money bag that uses the specified currency registry and adds all the specified values.
Declaration
public static ImmutableSortedMoneyBag CreateRange(CurrencyRegistry registry, IEnumerable<MonetaryValue> values)
Parameters
Returns
Exceptions
Type |
Condition |
ArgumentException |
Attempted to add a value with a currency that is not available in the currency registry.
|