Created
September 23, 2020 05:52
-
-
Save aershov24/11cbb3629b5326032b5305b1b25fb9a4 to your computer and use it in GitHub Desktop.
Markdium-
This file contains 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 void Consumer() | |
{ | |
foreach(int i in Integers()) | |
{ | |
Console.WriteLine(i.ToString()); | |
} | |
} | |
public IEnumerable Integers() | |
{ | |
yield return 1; | |
yield return 2; | |
yield return 4; | |
yield return 8; | |
yield return 16; | |
yield return 16777216; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment