AddItem Method (id, name, quantity, unitPrice)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 AddItem Method (id, name, quantity, unitPrice)
Patterns-In-Action! ApplicationCartShoppingCartAddItem(Int32, String, Int32, Double)
Adds a product item to the shopping cart.
Declaration Syntax
C# Visual Basic
public void AddItem(
	int id,
	string name,
	int quantity,
	double unitPrice
)
Public Sub AddItem ( _
	id As Integer, _
	name As String, _
	quantity As Integer, _
	unitPrice As Double _
)
Parameters
id (Int32)
Unique product identifier.
name (String)
Product name.
quantity (Int32)
Quantity.
unitPrice (Double)
Unit price of product.

Assembly: Cart (Module: Cart) Version: 1.0.0.0 (1.0.0.0)