Methods returning/accepting IEnumerable [duplicate]
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.
精彩评论