摘要: 1.delegate lamba 重写的方法 1 /// 2 /// Encapsulate shared functionality 3 /// 4 /// User defined action 5 void UniqueWrapper(Action action) 6 { 7 DoThingsA(); 8 action(); 9 DoThingsB();10 }11 /// 12 /// New implmentation of A13 /// 14 void NewA()15 {16 UniqueWrapper(() =>17 {18 ... 阅读全文
posted @ 2013-05-25 15:19 tinaleft 阅读(126) 评论(0) 推荐(0) 编辑