Method SetAmount
SetAmount(decimal, string)
Sets the amount the bag contains for the specified currency code and returns the resulting bag.
Declaration
public ImmutableMoneyBag SetAmount(decimal amount, string currencyCode)
Parameters
Type | Name | Description |
---|---|---|
decimal | amount | |
string | currencyCode |
Returns
Type | Description |
---|---|
ImmutableMoneyBag |
SetAmount(decimal, Currency)
Sets the amount the bag contains for the specified currency code and returns the resulting bag.
Declaration
public ImmutableMoneyBag SetAmount(decimal amount, Currency currency)
Parameters
Type | Name | Description |
---|---|---|
decimal | amount | |
Currency | currency |
Returns
Type | Description |
---|---|
ImmutableMoneyBag |