Skip to content

Instantly share code, notes, and snippets.

@duarten
Created January 31, 2013 16:35
Show Gist options
  • Save duarten/4684172 to your computer and use it in GitHub Desktop.
Save duarten/4684172 to your computer and use it in GitHub Desktop.
class C
{
static C()
{
// Let's run the initialization on another thread!
var thread = new System.Threading.Thread(Initialize);
thread.Start();
thread.Join();
}
static void Initialize() { }
static void Main() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment