反射调用函数带func委托参数的问题
class ClsTest
{
public void Test<TFirst, TSecond, TReturn>(Func<TFirst, TSecond, TReturn> map)
{
//....
}
}
public static void Test_Test()
{
ClsTest test = new ClsTest();
// call 1
test.Test<int, int, int>(
(a, b)=>{return a + b;}
);
// call 2
MethodInfo methodTest = test.GetType().GetMethod("Test").MakeGenericMethod(typeof (int), typeof (int), typeof(int));
ArrayList plist = new ArrayList();
plist.Add(?); // 这里
methodTest.Invoke(test, plist.ToArray());
}
请问问号处要怎么写 call 2 部分代码才能实现 call 1 相同功能