![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
patch guy
这个作者很懒,什么都没留下…
展开
-
C#委托与事件
多播委托 1、 委托可以同时进行一串动作,使用+=运算符。 2、例子: using System; class A { static void read(string s) ...原创 2019-04-26 23:34:38 · 80 阅读 · 0 评论 -
C#委托与事件
一 、 1、让函数以变量的身份出现,成为别人的参数。 2、int f(int x,int y); //定义一个函数 g(f) //该函数作为参数,对应于C语言的函数指针 3、 例子: delegate int D(intx, int y) //定义一个类,是委托类型D class A ...原创 2019-04-25 17:58:21 · 96 阅读 · 0 评论