猿问
C#的GetInvocationList()有什么用?
C#的GetInvocationList()有什么用?
慕哥6287543
浏览 386
回答 1
1回答
跃然一笑
如:public void Method1(..){}public void Method2(...){}EventHandler handler = new EventHandler(Method1);handler += new Eventhandler(Method2);Delegate[] delg = handler.GetInvocationList();foreach(Delegate dd in delg){dd(...);//将所有方法依次执行一次}
0
0
0
随时随地看视频
慕课网APP
相关分类
C#
typedef入门问题
1 回答
我要回答