Skip to content

Instantly share code, notes, and snippets.

@aershov24
Created September 23, 2020 06:14
Show Gist options
  • Save aershov24/b2d1a5562def9ff484cf5254fa06e721 to your computer and use it in GitHub Desktop.
Save aershov24/b2d1a5562def9ff484cf5254fa06e721 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