Top "Ienumerable" questions

IEnumerable, and its generic counterpart IEnumerable<T> are .NET interfaces for iterating (or enumerating) through a collection of items.

What is the difference between IQueryable<T> and IEnumerable<T>?

What is the difference between IQueryable<T> and IEnumerable<T>? See also What's the difference between …

.net linq .net-3.5 ienumerable iqueryable
Shorter syntax for casting from a List<X> to a List<Y>?

I know its possible to cast a list of items from one type to another (given that your object has …

c# list casting ienumerable
Freely convert between List<T> and IEnumerable<T>

How can I convert a List<MyObject> to an IEnumerable<MyObject> and then back again? I …

c# linq list ienumerable
What is the difference between IEnumerator and IEnumerable?

Possible Duplicate: Can anyone explain IEnumerable and IEnumerator to me? What are the differences between IEnumerator and IEnumerable?

c# .net ienumerable ienumerator
How can I return an empty IEnumerable?

Given the following code and the suggestions given in this question, I've decided to modify this original method and ask …

c# ienumerable
There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'xxx'

There are a couple of posts about this on Stack Overflow but none with an answer that seem to fix …

asp.net-mvc ienumerable drop-down-menu viewdata selectlist
Convert DataTable to IEnumerable<T>

I am trying to convert a DataTable to an IEnumerable. Where T is a custom type I created. I know …

c# datatable ienumerable
How to concatenate two IEnumerable<T> into a new IEnumerable<T>?

I have two instances of IEnumerable<T> (with the same T). I want a new instance of IEnumerable&…

c# .net ienumerable concatenation
Remove an item from an IEnumerable<T> collection

I have a popuplated IEnumerable<User> collection. I want to remove an item from it, how can I …

c# ienumerable