protected virtual Delegate CreateDelegate(Type delegateType, object target, string methodName) { return(SafeReflectionInvoker.CreateDelegate(delegateType, target, methodName)); }
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)); }