我的班上有两个带有这个签名的函数,
public static TResult Execute<TResult>(Func<T, TResult> remoteCall); public static void Execute(Action<T> remoteCall)
如何将第二种方法中的同一委托传递给第一种方法?使用Delegate参数创建方法不是一种方法,因为我丢失了一些异常信息非常感谢!
.net c# delegates
.net ×1
c# ×1
delegates ×1