How can I convert a List<MyObject> to an IEnumerable<MyObject> and then back again?
List<MyObject>
IEnumerable<MyObject>
I want to do this in order to run a series of LINQ statements on the List, e. g. Sort()
Sort()
List<string> myList = new List<string>(); IEnumerable<string> myEnumerable = myList; List<string> listAgain = myEnumerable.ToList();
1.4m articles
1.4m replys
5 comments
57.0k users