Imports System.IO
Imports System.Reflection
Imports System.Linq
Imports System.Xml.Linq
Public Class MainClass
Public Shared Sub Main
Dim numbers As Integer() = {5, 4, 1, 3}
Dim digits As String() = {"zero", "one", "two", "three"}
Dim lowNums = From num In numbers _
Where num < 5 _
Select digits(num)
Console.WriteLine("Numbers < 5:")
For Each num In lowNums
Console.WriteLine(num)
Next
End Sub
End Class
|