Constructor MonetaryValue
MonetaryValue(decimal, string)
Initializes a new instance of the MonetaryValue struct with the specified amount and currency code from the Default currency registry.
Declaration
public MonetaryValue(decimal amount, string currencyCode)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | amount | |
| string | currencyCode |
MonetaryValue(decimal, Currency)
Initializes a new instance of the MonetaryValue struct with the specified amount and currency.
Declaration
public MonetaryValue(decimal amount, Currency currency)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | amount | |
| Currency | currency |