0

Possible Duplicate:
Can anyone explain IEnumerable and IEnumerator to me?
what is IEnumerable in .net

I'm very confused on this IEnumerable thing.

What does it mean when method returns IEnumerable/IEnumerable<T> or when it's used as a parameter? My guess is that it can return/accept any (generic)collection type, which we can use later in foreach loops, no?

And what makes me even more confused is that it's an interface.

Not sure what makes me so confused, but I really feel stupid about it.

Community
  • 1
  • 1
dakt
  • 620
  • 1
  • 9
  • 24
  • take a look at the duplicate question :D – msarchet Sep 12 '11 at 21:58
  • 1
    It's worth picking *one* specific question to ask - return values or parameters; generic or non-generic; interface or not. Focus on one example, and see if you can say what confuses you about it - until then it's hard to help you, I'm afraid. No need to feel stupid though - we'll figure out a way of explaining things so they make sense, I'm sure :) – Jon Skeet Sep 12 '11 at 21:59

0 Answers0