ienumerable<int> results=...
i saw i can use it like
list<int> results=...
but i don't know what exactly is a ienumerable. could you give me a quick definition for it?
>>1
A list of integer numbers conformant with the Internet Explorer numeric format suite.
Name:
Anonymous2010-06-03 22:05
IEnumerable is a fundamental interface that most collections in .Net inherit from, such as List<T> in your example. It's useful because I can have a function take IEnumerable<T> as a parameter and then I can pass that function anything that is derived from IEnumerable such as lists, linq queries, etc..