摘要: 举个简单的例子:classProgram{publicstaticEventHandlereh=null;publicvoidtest(objectsender,EventArgse){Console.WriteLine(sender.ToString());}staticvoidMain(string[]args){Programp=newProgram();Dictionary<string,object>d=newDictionary<string,object>();eh=p.test;d.Add("other",eh);eh+=p.test 阅读全文
posted @ 2011-06-21 10:25 ergon 阅读(166) 评论(0) 推荐(0) 编辑