Convert Method Group to Expression

后端 未结 3 1804
情深已故
情深已故 2021-01-17 16:00

I\'m trying to figure out of if there is a simple syntax for converting a Method Group to an expression. It seems easy enough with lambdas, but it doesn\'t translate to meth

3条回答
  •  花落未央
    2021-01-17 16:42

    How about this?

      Expression> funcExpr2 = (pArg) => foo.AFuncIntInt(pArg);
      Expression delExpr2 = (pArg) => foo.AFuncIntInt(pArg);
    

提交回复
热议问题