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