void Calc(int a, int b, RunDelegeate calc) { //int result = 0; int res = calc(a, b); //return res; Console.WriteLine($"f({a},{b}) = {res}"); }
void TestCode() { var addOp = new RunDelegeate(Plus); Calc(6, 2, addOp); Console.WriteLine(Plus(6, 2)); Calc(6, 2, Minus); }