Skip to content

Instantly share code, notes, and snippets.

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