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