委托可以与命名方法关联。 使用命名方法对委托进行实例化时,该方法将作为参数传递,例如:
1 class Program 2 { 3 //声明一个委托 4 delegate void MyDel(string message); 5 6 7 static void Main(string 网友评论