Posted: 7/26/2010
Hello Guys,
Can any one tell me what is the basic difference between them? How they are related to collections in .Net?
Thanks,
Sumit Arora
SumitArora said: Hello Guys,Can any one tell me what is the basic difference between them? How they are related to collections in .Net?
Below links might be helpful for you-
http://www.codeproject.com/KB/cs/sssienumerable.aspx
http://stackoverflow.com/questions/619564/what-is-the-difference-between-ienumerator-and-ienumerable
Posted: 7/27/2010
I have just passed tru the pages that Mohit has provided in his post on this thread.
The first page provides detailed info regarding IEnumerable and IEnumerator interfaces
The second page will provide you with short answer but very useful (I've seen this answer previously and I like it!)
I think it's enough to understand the usage of these two interfaces.
Edit: Example usage: http://www.codeproject.com/KB/cs/csenumerators.aspx