包含唯一项目的通用列表

时间:2015-03-02 13:37:34

标签: vb.net generic-list

我有类似的课程:

Public Class Foo
    Public Item As String
    Public StorageLocation As String
    Public NewQuantity As Double
    Sub New(item As String, location As String, quantity As Double)
        Me.Item = item
        Me.Location = location
        Me.NewQuantity = quantity
    End Sub
End Class

我希望有一个通用列表,我可以在其中选择具有唯一Item&组的唯一对象。地点。这可能吗?

0 个答案:

没有答案