-
First we discuss about the Range operator by using a simple example. you can write this code in vb.net and by getting the output you understand the working of Range operator.
EXAMPLE CODE
Module Module1
Sub Main()
Dim Values = From n In Enumerable.Range(1, 20) Select No = n, OddEven = If(n Mod 2 = 1, "odd", "even")
For Each n In Values
Console.WriteLine("The number {0} is {1}.", n.No, n.OddEven)
Next
Console.ReadLine()
End Sub
End Module

Join the conversation! Your thoughts help the community grow.