这是主调用类
using System;
using System.Collections.Generic;
using System.Text;
namespace callbackDEMO
{
class Program
{
static void Main(string[] args)
{
int i = 200;
int j = 34;
fcalculateCallBack fcCallBack = new fcalculateCallBack(FuncCLS.Multi);
int result = callbackCLS.output(i,j,fcCallBack);
Console.WriteLine(result.ToString());
Console.ReadKey();
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace callbackDEMO
{
class callbackCLS
{
public static int output(int x, int y, fcalculateCallBack fc)
{
return fc(x, y);
}
}
}