Method TransformAmounts
TransformAmounts(Func<decimal, decimal>)
Applies the specified transformation to each value's amount in this bag and returns the resulting bag.
Declaration
IImmutableMoneyBag TransformAmounts(Func<decimal, decimal> transform)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<decimal, decimal> | transform |
Returns
| Type | Description |
|---|---|
| IImmutableMoneyBag |
TransformAmounts(Func<decimal, decimal?>)
Applies the specified transformation to each value's amount in this bag and returns the resulting bag. Amounts transformed to a null amount are removed.
Declaration
IImmutableMoneyBag TransformAmounts(Func<decimal, decimal?> transform)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<decimal, decimal?> | transform |
Returns
| Type | Description |
|---|---|
| IImmutableMoneyBag |