tags:

views:

2575

answers:

1

Possible Duplicate:
IList&lt;T&gt; 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

+15  A: 
var list = new List<string>();
var queryable = list.AsQueryable();
Greg Beech
If you don't see the AsQueryable() method, add a using statement for System.Linq.
James Lawruk