Click or drag to resize
Transaction Constructor (String, DateTime, Double)
Initializes a new transaction from the given arguments.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public 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
Exceptions
ExceptionCondition
ArgumentExceptionif amount is double.NaN, double.PositiveInfinity, or double.NegativeInfinity
See Also