Created
September 23, 2020 06:11
-
-
Save aershov24/0ce2dcfb5d63ccabff9f86603659d73b to your computer and use it in GitHub Desktop.
Markdium-60 .NET Interview Questions Devs Must Focus On (ANSWERED)
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 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