Dispose() public method

public Dispose ( ) : void
return void
Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     disableConsoleClosing();
     GameContext context=new GameContext();
     CommandListener listener=new CommandListener(context);
     MessagePump.Run(context.MainWindow,context.Render);
     listener.Dispose();
     context.Dispose();
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            disableConsoleClosing();
            GameContext     context  = new GameContext();
            CommandListener listener = new CommandListener(context);

            MessagePump.Run(context.MainWindow, context.Render);
            listener.Dispose();
            context.Dispose();
        }