public delegate int Mydg(int a ,int b);
public static class LambdaTest
{
public static int Oper(this int a ,int b ,Mydg dg)
{
return dg(a,b)
}
}
Console.WriteLine(1.Oper(2,(a,b)=>a+b));
public delegate int Mydg(int a ,int b);
public static class LambdaTest
{
public static int Oper(this int a ,int b ,Mydg dg)
{
return dg(a,b)
}
}
Console.WriteLine(1.Oper(2,(a,b)=>a+b));