示例#1
0
 protected virtual Delegate CreateDelegate(Type delegateType, object target, string methodName)
 {
     return(SafeReflectionInvoker.CreateDelegate(delegateType, target, methodName));
 }
示例#2
0
        protected virtual object InvokeFactoryMethod(Type type, string methodName, object[] args)
        {
            MethodInfo method = GetFactoryMethod(type, methodName, args, BindingFlags.Public | BindingFlags.Static);

            return(SafeReflectionInvoker.InvokeMethod(method, null, args));
        }