什么是代表..?它有什么用..? [英] What is delegate..? What is the use of it..?
本文介绍了什么是代表..?它有什么用..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
什么是代表..?它有什么用..?
委托是异步调用一个函数吗?.
希望了解更多有关..
Hai all,
What is delegate..? What is the use of it..?
What is difference between calling a function without delegate and with delegate..?
Is delegates calls a function asynchronously..?
wish to know more about..
推荐答案
Delegate是引用方法的类型.这是一个很好的教程,可以更好地解释你
代理教程 [
Delegate is a type that reference a method. here is nice tutorial that explain u better
delegate tutorial[^]
代表主要用于匿名方法调用.
这是一个例子
使用代理的匿名方法
委托也像C ++一样用作函数指针.
使用Google搜索更好地理解代表.
Delegates are mainly used for annonymous method call.
here is an Example
Anonymous Methods using Delegates
Delegates also work as function pointer as in C++.
Google Search is more better to understand Delegates.
请参阅此链接.内部还有另一个链接.另请参阅那些
http://forums.asp.net/t/1326720.aspx/1 [ ^ ]
See this link.Internally there are another links in this one. Refer those also
http://forums.asp.net/t/1326720.aspx/1[^]
这篇关于什么是代表..?它有什么用..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文