示例#1
0
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
示例#2
0
 /// <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();
     }
 }
示例#3
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
		internal static void RunGame ()
		{
			game = new Game1 ();
			game.Run ();
		}