Quick tip: Do proper exception handling
This might be a bit of a d’oh, but if you decide to handle exception, handle it properly. What do I mean by saying “properly”? Have you ever seen code like this? var myClass = new MyClass(); try { myClass.SomeMethodThatCanThrowException(); } catch { } finally { myClass.Dispose(); } This code is stupid. Exceptions are a […]