


public static class MethodProxyEx
{
private static readonly ConcurrentDictionary<string, Delegate> _methodCache;
static MethodProxyEx()
{
_methodCache = new ConcurrentDictionary<string, Delegate>();
}
public static OutType GetMethodProxy<OutType>(this object target, string methodName) where OutType : Delegate
=> (OutType)target.GetMethodDelegate<OutType>(methodName);
public static Delegate GetMethodDelegate<OutType>(this object target, string methodName) where OutType : Delegate
{

最低0.47元/天 解锁文章
1800

被折叠的 条评论
为什么被折叠?



