Class Foo Public Value As Integer End Class
Dim items As New List(Of Foo) Dim f As New Foo f.Value = 1 items.Add(f) f.Value = 2 items.Add(f)
Dim items As New List(Of Foo) Dim f As Foo f = New Foo() f.Value = 1 items.Add(f) f = New Foo() f.Value = 2 items.Add(f)