Skip to content

Instantly share code, notes, and snippets.

@marcioalthmann
Created January 14, 2012 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcioalthmann/1610042 to your computer and use it in GitHub Desktop.
Save marcioalthmann/1610042 to your computer and use it in GitHub Desktop.
Loops no C# inspirados em Ruby
3.Times(x => Console.Write("{0} ", x));
5.UpTo(10).Each(x => Console.Write("{0} ", x));
10.DownTo(5).Each(x => Console.Write("{0} ", x));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment