SyntaxFix
Write A Post
Hire A Developer
Questions
To convert IQuerable or IEnumerable to a list, you can do one of the following:
IQuerable
IEnumerable
IQueryable<object> q = ...; List<object> l = q.ToList();
or:
IQueryable<object> q = ...; List<object> l = new List<object>(q);