convert list to ienumerable
using Linq;
IEnumerable<int> enumerable = Enumerable.Range(1, 300);
List<int> asList = enumerable.ToList();
0
0
List<Book> list = new List<Book>();
return list.AsEnumerable();
Thank you!
0
0
Are there any code examples left?
New code examples in category C#