Method TransformValues
TransformValues(Func<MonetaryValue, decimal>)
Applies the specified transformation to each value's amount in this bag.
Declaration
void TransformValues(Func<MonetaryValue, decimal> transform)
Parameters
Type | Name | Description |
---|---|---|
Func<MonetaryValue, decimal> | transform |
TransformValues(Func<MonetaryValue, decimal?>)
Applies the specified transformation to each value's amount in this bag. Values transformed to a null amount are removed.
Declaration
void TransformValues(Func<MonetaryValue, decimal?> transform)
Parameters
Type | Name | Description |
---|---|---|
Func<MonetaryValue, decimal?> | transform |