C#学习之路(一)

C#与C极为相似,但是C#是面向对象的语言。先讲下以下几个知识点:

委托:

格式: delegate int Mydelegate(int  a ,int  b);   //声明一个委托(类似这种格式)

实例化:Mydelegate  method = new Mydelegate();

调用:method(参数列表)


例子:

见图

猜你喜欢

转载自blog.csdn.net/l_smartworld/article/details/79178987