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