Created
April 19, 2010 18:40
-
-
Save BrunoCaimar/371420 to your computer and use it in GitHub Desktop.
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
| static void Main(string[] args) | |
| { | |
| int[] oneToNine = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; | |
| var query = | |
| from i1 in oneToNine | |
| from i2 in oneToNine | |
| from i3 in oneToNine | |
| select i1 + (10 * i2) + (100 * i3) ; | |
| foreach (int n in query.OrderBy(n => n)) | |
| { | |
| Console.WriteLine("{0}",n); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment