Skip to content

Instantly share code, notes, and snippets.

@xmcclure
Created May 4, 2016 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xmcclure/08ac836a11db3b15fb4f9d6847975243 to your computer and use it in GitHub Desktop.
Save xmcclure/08ac836a11db3b15fb4f9d6847975243 to your computer and use it in GitHub Desktop.
using System;
namespace Test
{
class Program
{
void Recur(int x)
{
Console.WriteLine("In " + x);
if (x > 0) {
Console.WriteLine("Descend " + x);
Recur(x - 1); // BREAKPOINT HERE
}
Console.WriteLine("Out " + x);
}
static void Main(string[] args)
{
Program p = new Program();
p.Recur(2);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment