IEnumerator interface in c#
Please Explain IEnumerator with the example?What is the main purpose to use it?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted May 23, 2012, 10:02 PM EDT
Please refer the below links
http://msdn.microsoft.com/en-us/library/system.collections.ienumerator.aspx
http://www.codeproject.com/Articles/8237/IEnumerable-And-IEnumerator-interfaces
http://www.c-sharpcorner.com/UploadFile/cupadhyay/IEnumeratorUsingInnerClass11092005045455AM/IEnumeratorUsingInnerClass.aspx
Thanks
Gohil JayendrasinhRank #490 · 5K reputationPosted May 23, 2012, 9:58 PM EDT
IEnumerable<T> it's enable you to express
traversal, filter, and projection operations over data in any .NET-based
programming language. For more information
http://msdn.microsoft.com/en-us/library/bb341635
Ex. Sum(IEnumerable<Single>)