Created
October 4, 2011 23:25
-
-
Save einarwh/1263145 to your computer and use it in GitHub Desktop.
Iterating over positive integers!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreach (int i in new Incrementer()) | |
| { | |
| Console.WriteLine(i); | |
| if (i == 10) { break; } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment