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