hi,
i am doing the project in .net. i m using linq in my project
i using vs2005 and installed the linq.
i am able to run the linq only in LinqconsoleApplication. but i need to run in normal console application.
ie i like to create one class file and do some linq operations. but in normal class or console application, i m not able to r u the linq operations
i m using the following headers....
using System;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.DLinq;
using System.Data.Linq;
using System.Query;
using System.Reflection;
using System.Expressions;
using System.Query.Script;
class pr
{
var x =new int[] {1,2,3,4,5,6,7,8};
var ev=from a in x
where (ev %2)==0
select a;
foreach(var i in ev)
console.writeline(i);
}
after compile this code
i got the type or namespace var can't find out..
if u know the solution for the above one. please share ur ideas....