摘要:
用设计模式、AOP能将一个方法/函数包裹起来,并且插入额外的逻辑行为,不过动作比较大,不是很灵活,下面介绍一种链式调用方法来封装的代码,完成后能实现如下的链式调用:public class BO { public bool Add(string msg) { Console.WriteLine("Add"); if (msg == null) throw new Exception(); return true... 阅读全文
posted @ 2014-03-26 18:05
McKay
阅读(1879)
评论(2)
推荐(2)

浙公网安备 33010602011771号