Created
September 23, 2020 06:14
-
-
Save aershov24/b2d1a5562def9ff484cf5254fa06e721 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