static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { //cannot access disposed object game.Run(); } }
static void Main() { using (var game = new Game1()) game.Run(); }
internal static void RunGame () { game = new Game1 (); game.Run (); }