using System;
using System.Linq;
class Program
{
static void Main()
{
var numbers = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var query = from num in numbers
where num % 2 == 0
select num;
foreach (var num in query)
{
Console.WriteLine(num);
}
}
}
void Main()
{
var numbers = Enumerable.Range(1, 10);
var evenNumbers = from num in numbers
where num % 2 == 0
select num;
evenNumbers.Dump();
}