摘要: class Operate { public string _firstKey; public string _secondKey; public string _extendKey; public string FirstKey { get { return _firstKey;} set{_firstKey=value;} } public string SecondKey { get { return _secondKey; ... 阅读全文
posted @ 2013-06-19 14:57 Ethan.Sun 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 重构的简单规则就是去除重复代码,加强代码规范,命名(方法名,变量名,类名等等),书写格式,提取函数,使得每个函数短小精悍,最终的目的不需要通过注释别人也能读懂代码 阅读全文
posted @ 2013-06-19 10:44 Ethan.Sun 阅读(164) 评论(0) 推荐(0) 编辑