Method CreateDefaultable
CreateDefaultable(decimal, string?)
Creates a new MonetaryValue value with the specified amount and currency code from the Default currency registry.
Allows creating default monetary values by passing 0
for the amount and null for the currency code. Currency code must be provided
if the amount is non-zero.
Declaration
public static MonetaryValue CreateDefaultable(decimal amount, string? currencyCode)
Parameters
Returns
CreateDefaultable(decimal, Currency?)
Creates a new MonetaryValue value with the specified amount and currency. Allows creating default monetary values by passing 0
for
the amount and null for the currency. Currency must be provided if the amount is non-zero.
Declaration
public static MonetaryValue CreateDefaultable(decimal amount, Currency? currency)
Parameters
Returns