摘要:
using System;using System.Collections.Generic;using System.Text;namespace CON_delegate{ //委托类似于C语言的函数指针,一个委托类型的实例变量指向一个方法, //方法地签名要和委托的签名一致,类型安全。 //委托可以指向多个方法,使用"+="操作符。 public delegate void Delegate_FruitName(); class Program { static void Main(string[] args) { Apple apple = new Apple(); 阅读全文