VB2005 での構造体のリスト
構造体も List の型として指定できるようだ。
Private Structure test
Dim a As Integer
Dim b As Integer
End StructureDim structArray As New List(Of test)
Dim st As testst.a = 1 : st.b = 2
structArray.Add(st)st.a = 3 : st.b = 4
structArray.Add(st)For Each tmp As test In structArray
Console.WriteLine("{0}, {1}", tmp.a, tmp.b)
Next