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
| public class Example2 | |
| { | |
| public static void Run() | |
| { | |
| IEnumerable<string> list = CalcResults().Take(2); | |
| foreach (string result in list) | |
| { | |
| Console.Out.WriteLine(result); | |
| } |
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
| IEnumerable<int> list3 = AllWholeNumbers().Take(10); | |
| IEnumerable<int> list4 = AllWholeNumbers().Skip(100).Where(n => n % 2 == 0).Take(10); | |
| ... |
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
| public class Example1 | |
| { | |
| public static void Run() | |
| { | |
| IEnumerable<int> list = AllWholeNumbers(); | |
| foreach (int result in list) | |
| { | |
| Console.Out.WriteLine(result); | |
| } |