About Delegate and Event
来源:互联网 发布:程序员用win还是mac 编辑:程序博客网 时间:2024/05/15 00:05
Just some information, if it is wrong, please correct me. Thank you
wait...
Delegate, is used in c sharp, like the feature on "function pointer" in c++.
One friend tell me that is "delegate" is used to encapsulate functions.
How to use it?
We can use as "viariable" to use it.
1, Define it:
blic delegate void name()
2, code the functions that will be encapsulated by delegate.
they should have same return type and parameters
3, register functions to delegate instance
Delegate has big business with "Event".
When an "envet" is happen, we don't know what should be doing.
Then, we can use delegate to encapsulate the functions.
- About Delegate and Event
- DELEGATE AND EVENT
- About Delegate and Anonymous methods
- delegate and event i think
- C# delegate and event 规范写法
- Delegate Event
- Delegate & Event
- Delegate & Event
- Delegate & Event
- delegate, event
- delegate & event
- About Event
- What's the difference between an event and a delegate?
- The relation between event and delegate in visual c#
- 委托和事件之烧开水:Delegate and Event
- c#中的委托与事件delegate and event
- Two Interview questions! about event and Observer mode
- Know more about RAC statistics and wait event
- apache 开启 rewrite 重写规则 apache 目录 htaccess rewrite 重写规则 (伪静态)
- Ado.net的连接池
- 如何由中心点生成一定长宽的矩形
- Nosql Redis学习
- 域名配置要修改的几个地方
- About Delegate and Event
- 昨夜无眠(作者:程代展)
- js里面的new到底干了些什么
- AM335x uboot spl分析
- 我的反思(作者:程代展)
- java Zip 压缩文档
- 动态页面静态化 java
- SqlServer按照指定顺序对字段进行排序
- 64位Ubuntu无法运行Adnroid SDK adb命令