📅  最后修改于: 2022-03-11 14:49:00.290000             🧑  作者: Mango
var tArgs = new List();
foreach (var param in method.GetParameters())
tArgs.Add(param.ParameterType);
tArgs.Add(method.ReturnType);
var delDecltype = Expression.GetDelegateType(tArgs.ToArray());
return Delegate.CreateDelegate(delDecltype, method);