14
1
Option Strict On
2
Imports System
3
Imports System.Linq
4
Public Module Module1
5
Public Sub Main()
6
'Declare a collection to store some numbers
7
Dim values() As Integer = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
8
9
'Loop through each value WHERE the current value is less than 5
10
For Each value As Integer In (From i As Integer In values Where i < 5)
11
Console.WriteLine(value)
12
Next
13
End Sub
14
End Module
Cached Result