c# list object to ienumerable code example Example: convert list to ienumerable List<Book> list = new List<Book>(); return list.AsEnumerable();