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

.NetLinq

.Net Problem Overview


> 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

.Net Solutions


Solution 1 - .Net

var list = new List<string>();
var queryable = list.AsQueryable();

Add a reference to: System.Linq

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSpencerView Question on Stackoverflow
Solution 1 - .NetGreg BeechView Answer on Stackoverflow