9
尝试/捕获+使用正确的语法
哪一个: using (var myObject = new MyClass()) { try { // something here... } catch(Exception ex) { // Handle exception } } 要么 try { using (var myObject = new MyClass()) { // something here... } } catch(Exception ex) { // Handle exception }