Money(Decimal, ICurrency, IRoundingStrategy) Constructor

Creates a new instance of Money denominated in a particular ICurrency.

Definition

Namespace: InnerDrive.Financial
Assembly: InnerDrive.Financial (in InnerDrive.Financial.dll) Version: 5.2.9017.0
C#
[JsonConstructorAttribute]
public Money(
	decimal value,
	ICurrency currency,
	IRoundingStrategy roundingStrategy
)

Parameters

value  Decimal
The value of money to create.
currency  ICurrency
The currency units to use.
roundingStrategy  IRoundingStrategy
The rounding strategy to use

Exceptions

ArgumentNullExceptioncurrency or roundingStrategy is null

See Also