操作回顧
WroxShoppingCart類提供了可插入到代碼中的對象
<%@ Imports Namespace=
這個引用允許利用ShoppingCart對象中的所有屬性和方法
CartItem只是一系列屬性
Private _productID As Integer
Private _productName As String
Private _productImageUrl As String
Private _quantity As Integer
Private _price As Double
Private _lineTotal As Double
productName屬性是文本
每個這些屬性必須是可讀取和可寫入的
Public Property ProductID() As Integer
Get
Return _productID
End Get
Set(ByVal value As Integer)
_productID = value
End Set
[
From:http://tw.wingwit.com/Article/program/net/201311/15594.html