Skip to content

Instantly share code, notes, and snippets.

@DexterHaslem
Created September 12, 2013 20:32
Show Gist options
  • Save DexterHaslem/6543328 to your computer and use it in GitHub Desktop.
Save DexterHaslem/6543328 to your computer and use it in GitHub Desktop.
closure loop
Action a1 = null;
Action a2 = null;
a1 = () =>
{
Thread.Sleep(1000);
Console.WriteLine("a1");
a2();
};
a2 = () =>
{
Console.WriteLine("a2");
a1();
};
a1();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment