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