为什么使用代理而不是调用方法? [英] Why use delegates instead of calling the methode?

查看:66
本文介绍了为什么使用代理而不是调用方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁可以告诉我为什么你使用代理而不是使用方法本身?



我知道委托做了什么以及如何调用和创建等等。 。

但是我看不到使用它的目的。





thx



Tom

Can anyone tell me why you use delegates instead of using the methode itself?

I know what a delegate does and how its called and created, etc...
But I can't see the purpose of using it.


thx

Tom

推荐答案

请查看我过去的答案:

C#.NET中代理的优势是什么? [ ^ ],

代表的额外优势是什么 [ ^ ]。



-SA
Please see my past answers:
What are the advantages of delegates in C#.NET?[^],
What is the Extra Advantage of Delegate[^].

—SA


这篇关于为什么使用代理而不是调用方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆