Projecting Select
Imports System.IO
Imports System.Reflection
Imports System.Linq
Imports System.Xml.Linq
Public Class MainClass
Public Shared Sub Main
Dim numbers = New Integer() {5, 4, 1, 3, 9, 8, 6, 7, 2, 0}
Dim numsPlusOne = From num In numbers _
Select num + 1
Console.WriteLine("Numbers + 1:")
For Each i In numsPlusOne
Console.WriteLine(i)
Next
End Sub
End Class
Related examples in the same category