Created
July 22, 2017 07:51
-
-
Save christiannagel/efabd530c90a69fe012ce0f36bd5e5e0 to your computer and use it in GitHub Desktop.
Endless recursive call until stack ends
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 static void WhenDoesItEnd() | |
{ | |
Console.WriteLine(nameof(WhenDoesItEnd)); | |
void InnerLoop(int ix) | |
{ | |
Console.WriteLine(ix++); | |
InnerLoop(ix); | |
} | |
InnerLoop(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment