Method TransformAmounts
TransformAmounts(Func<decimal, decimal>)
Applies the specified transformation to each value's amount in this bag and returns the resulting bag.
Declaration
public ImmutableSortedMoneyBag TransformAmounts(Func<decimal, decimal> transform)
Parameters
Type | Name | Description |
---|---|---|
Func<decimal, decimal> | transform |
Returns
Type | Description |
---|---|
ImmutableSortedMoneyBag |
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
public ImmutableSortedMoneyBag TransformAmounts(Func<decimal, decimal?> transform)
Parameters
Type | Name | Description |
---|---|---|
Func<decimal, decimal?> | transform |
Returns
Type | Description |
---|---|
ImmutableSortedMoneyBag |