Class MoneyCollectionExtensions
Provides a bag of static methods for converting between money collection types.
Namespace: Singulink.Globalization
Assembly: Singulink.Globalization.Currency.dll
Syntax
public static class MoneyCollectionExtensions
Methods
| Name | Description |
|---|---|
| ToImmutableMoneyBag(IReadOnlyMoneyBag) | Copies the values in the source bag to a new ImmutableMoneyBag that uses the same registry as the source bag. |
| ToImmutableMoneyBag(IReadOnlyMoneyBag, CurrencyRegistry) | Copies the values in the source bag to a new ImmutableMoneyBag that uses the specified registry. |
| ToImmutableMoneyBag(IEnumerable<MonetaryValue>, CurrencyRegistry) | Copies the values in the source collection to a new ImmutableMoneyBag that uses the specified registry. |
| ToImmutableSortedMoneyBag(IReadOnlyMoneyBag) | Copies the values in the source bag to a new ImmutableSortedMoneyBag that uses the same registry as the source bag. |
| ToImmutableSortedMoneyBag(IReadOnlyMoneyBag, CurrencyRegistry) | Copies the values in the source bag to a new ImmutableSortedMoneyBag that uses the specified registry. |
| ToImmutableSortedMoneyBag(IEnumerable<MonetaryValue>, CurrencyRegistry) | Copies the values in the source collection to a new ImmutableSortedMoneyBag that uses the specified registry. |
| ToMoneyBag(IReadOnlyMoneyBag) | Copies the values in the source bag to a new MoneyBag that uses the same registry as the source bag. |
| ToMoneyBag(IReadOnlyMoneyBag, CurrencyRegistry) | Copies the values in the source bag to a new MoneyBag that uses the specified registry. |
| ToMoneyBag(IEnumerable<MonetaryValue>, CurrencyRegistry) | Copies the values in the source collection to a new MoneyBag that uses the specified registry. |
| ToSortedMoneyBag(IReadOnlyMoneyBag) | Copies the values in the source bag to a new SortedMoneyBag that uses the same registry as the source bag. |
| ToSortedMoneyBag(IReadOnlyMoneyBag, CurrencyRegistry) | Copies the values in the source bag to a new SortedMoneyBag that uses the specified registry. |
| ToSortedMoneyBag(IEnumerable<MonetaryValue>, CurrencyRegistry) | Copies the values in the source collection to a new SortedMoneyBag that uses the specified registry. |