using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;
using System.Linq;
class Program
{
static void Main(string[] args)
{
int[] numbers = { 10, 20, 30, 40, 1, 2, 3, 8 };
var subset = from i in numbers where i < 10 select i;
foreach (var i in subset)
Console.Write("Item: {0} ", i);
Console.WriteLine("resultSet is of type: {0}", subset.GetType().Name);
Console.WriteLine("resultSet location: {0}", subset.GetType().Assembly);
}
}