Transaction Constructor (String, DateTime, Double) |
Initializes a new transaction from the given arguments.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic Transaction(
string who,
DateTime when,
double amount
)
Parameters
- who
- Type: SystemString
who the person involved in this transaction - when
- Type: SystemDateTime
when the date of this transaction - amount
- Type: SystemDouble
amount the amount of this transaction
ExceptionsException | Condition |
---|
ArgumentException | if amount
is double.NaN, double.PositiveInfinity,
or double.NegativeInfinity |
See Also