How to Implement an Enumerator by Using an Iterator in c# [Resolved]

Posted by Jitendrasoft09 under C# on 6/25/2013 | Points: 10 | Views : 1157 | Status : [Member] [MVP] | Replies : 4
Hi All,
I want to understand how to Implement an Enumerator by Using an Iterator in c#, please explain with example

Jitendra Kumar
If my post helps you, plz mark as an answer.



Responses

Posted by: Allemahesh on: 6/27/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
The most common way to create an iterator is to implement the GetEnumerator method on the IEnumerable interface.

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 6/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://www.codeproject.com/Tips/359873/Csharp-Iterator-Pattern-demystified
http://msdn.microsoft.com/en-us/library/vstudio/65zzykke%28v=vs.100%29.aspx

If this post helps you mark it as answer
Thanks

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bageshkumarbagi on: 6/27/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

Refer this link.
http://www.tutorialspoint.com/csharp/csharp_enums.htm

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 6/27/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Thanks Satya, Bagesh... nice explanation Allema...

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response