How change List<T> data to IQueryable<T> data

Spencer picture Spencer · Mar 24, 2009 · Viewed 124.5k times · Source

Possible Duplicate:
IList<T> to IQueryable<T>

I have a List data, but I want a IQueryable data , is it possible from List data to IQueryable data? Show me code

Answer

Greg Beech picture Greg Beech · Mar 24, 2009
var list = new List<string>();
var queryable = list.AsQueryable();

Add a reference to: System.Linq