Initializes a new instance of the Incidental class with the specified incidental code and fixed rate.

Namespace:  BargeEx
Assembly:  BargeEx (in BargeEx.dll)
Version: 3.0.400.140 (3.0.400.140)

Syntax

C#
public Incidental(
	CicaIncidentalCode code,
	decimal fixedAmount
)
Visual Basic (Declaration)
Public Sub New ( _
	code As CicaIncidentalCode, _
	fixedAmount As Decimal _
)
Visual C++
public:
Incidental(
	CicaIncidentalCode code, 
	Decimal fixedAmount
)

Parameters

code
Type: BargeEx..::.CicaIncidentalCode
The type of incidental to create.
fixedAmount
Type: System..::.Decimal
The fixed cost of this incidental.

Remarks

The constructor initializes an Incidental object with the Code property set to code, the RateType property set to FixedRate, and the FixedRateAmount property set to fixedAmount.

The cost of this incidental is calculated as follows:
Cost = fixedAmount

See Also