Imports System
Imports System.Collections.Generic
Public Class Program
Public Shared Sub Main()
Dim list = New List(Of Integer)() ' Empty List
For i As Integer = 0 To 7 - 1 ' auto-growth (dynamic memory)
list.Add(i * 2)
Next
For Each value As Integer In list
Console.Write("{0} ", value)
Next
End Sub
End Class
' run
'
' 0 2 4 6 8 10 12
'