can i convert all ienumerable to list code example
Example 1: convert ienumerable to list
using Linq;
IEnumerable<int> enumerable = Enumerable.Range(1, 300);
List<int> asList = enumerable.ToList();
Example 2: convert list to ienumerable
List<Book> list = new List<Book>();
return list.AsEnumerable();