索引用於標識購物車中的每個商品
最後說明Total:
Public ReadOnly Property Total() As Double
Get
Dim t As Double
If _items Is Nothing Then
Return
End If
For Each Item As CartItem In _items
t += Item
Next
Return t
End Get
它也是相當簡單的特性
ASP
[
From:http://tw.wingwit.com/Article/program/net/201311/15595.html