Method ToMoneyBag
ToMoneyBag(IReadOnlyMoneyBag)
Copies the values in the source bag to a new MoneyBag that uses the same registry as the source bag.
Declaration
public static MoneyBag ToMoneyBag(this IReadOnlyMoneyBag source)
Parameters
Returns
ToMoneyBag(IReadOnlyMoneyBag, CurrencyRegistry)
Copies the values in the source bag to a new MoneyBag that uses the specified registry.
Declaration
public static MoneyBag ToMoneyBag(this IReadOnlyMoneyBag source, CurrencyRegistry registry)
Parameters
Returns
ToMoneyBag(IEnumerable<MonetaryValue>, CurrencyRegistry)
Copies the values in the source collection to a new MoneyBag that uses the specified registry.
Declaration
public static MoneyBag ToMoneyBag(this IEnumerable<MonetaryValue> source, CurrencyRegistry registry)
Parameters
Returns