110,533
社区成员
发帖
与我相关
我的任务
分享
namespace CheckPPT
{
public delegate int CheckExamTestDelegate(string pram);
public class PPTClass
{
public static int Check1(string pram)
{
return Convert.ToInt32(pram);
}
public static int Check2(string pram)
{
return Convert.ToInt32(pram);
}
public static int Check3(string pram)
{
return Convert.ToInt32(pram);
}
public static int Check4(string pram)
{
return Convert.ToInt32(pram);
}
public static int Check5(string pram)
{
return Convert.ToInt32(pram);
}
}
}
namespace CheckPPT
{
class Program
{
public static int total = 0;
static void Main(string[] args)
{
String[] Str = {"Check1","Check2","Check4"};
String[] Parm = { "1", "2", "3" };
for (int i = 0; i < 3; i++)
{
total += TCheck(Parm[i].ToString(),此处不知怎么填);
}
}
public static int TCheck(string pram, CheckExamTestDelegate MakingCheck)
{
return MakingCheck(pram);
}
}
}