static void Main(string[] args) { using (D3DApp app = new CubeMapApp(Process.GetCurrentProcess().Handle)) { app.Initialize(); app.Run(); } }
static void Main(string[] args) { using (var app = new CubeMapApp()) { app.Initialize(); app.Run(); } }