代码:
/**********************************************
*
* 清空委托列表的方法
*
*
*
* *********************************************/
using System;
namespace 深入学习委托
{
class Demo1
{
Action actHandler;
public Demo1()
{
actHandler += DeleteMehtod1;
actHandler += DeleteMehtod2;
actHandler += DeleteMehtod3;
actHandler += DeleteMehtod4;
}
public void DeleteMehtod1()
{
Conso