Contact: aviboots(AT)netvision.net.il
40,768 questions
53,148 answers
573 users
Module Module1 Sub Main() Dim list As New List(Of Integer)(New Integer() {123, 5, 99}) Dim i As Integer For i = 0 To list.Count - 1 Console.WriteLine(list.Item(i)) Next i End Sub End Module ' run: ' ' 123 ' 5 ' 99
Module Module1 Sub Main() Dim list As New List(Of Integer)(New Integer() {1, 5, 6, 7, 9}) Dim n As Integer For Each n In list Console.WriteLine(n) Next End Sub End Module ' run: ' ' 1 ' 5 ' 6 ' 7 ' 9