I know this question has been asked quite a few times but i still don't understand what the proper order should be.
If you want to catch an exception in the objects creation you have to put the try and catch outside of the using statement:
try { using... } catch (Exception e) { }
And if you want to catch an exception after the objects creation then:
using(...) { try {...} catch (Exception e) {} }
But what if you want to catch both during and after the objects creation? Would it be:
try { using(...) { try {...} catch (Exception e) {} } } catch (Exception e) { }
Or would it be better to just use a try, catch, and a finally with a dispose?