Constructor AfterPayMoney
AfterPayMoney(Decimal)
Constructs a new instance using the specified amount and currency.
Declaration
public AfterPayMoney(decimal amount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Decimal | amount | A decimal value indicating the numeric value of this monetary value. This value should be rounded to the appropriate number of decimal places associated with the currency specified by Currency. |
Remarks
This constructor uses the DefaultCurrency value for the Currency property of this instance. If DefaultCurrency is null or empty string then AustralianDollars will be used.
AfterPayMoney(Decimal, String)
Constructs a new instance using the specified amount and currency.
Declaration
public AfterPayMoney(decimal amount, string currency)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Decimal | amount | A decimal value indicating the numeric value of this monetary value. This value should be rounded to the appropriate number of decimal places associated with the currency specified by Currency. |
| System.String | currency | A three chracter string that identifies the currency this monetary value is in. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
| System.ArgumentException | Thrown if |