您的位置:首页 > 编程语言 > C#

一个C#中使用 event 和 delegate的小例子。

2009-02-25 17:42 531 查看
In event communication, the event sender class does not know which object or method will receive (handle) the events it raises. What is needed is an intermediary (or pointer-like mechanism) between the source and the receiver. The .NET Framework defines a special type (Delegate) that provides the functionality of a function pointer.

-------the relationship between Delegate & Event <MSDN>

Code
master: Where is my slave?
slave: I am here, my lord!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐