How to use try catch nicely in multiple methods?
问题 Sorry if my question is stupid, but I have this kind of code : public Object1 Method1(Object2 parameter) { try { return this.linkToMyServer.Method1(parameter); } catch (Exception e) { this.Logger(e); } return null; } public Object3 Method2(Object4 parameter) { try { return this.linkToMyServer.Method2(parameter); } catch (Exception e) { this.Logger(e); } return null; } /* ... */ public ObjectXX Method50(ObjectXY parameter) { try { return this.linkToMyServer.Method50(parameter); } catch