Skip to content

Instantly share code, notes, and snippets.

@xmcclure
Created May 4, 2016
Embed
What would you like to do?
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