public object Apply(dynamic thisArg, dynamic arguments) { dynamic applyArgs = context.FromComObject(arguments); var convertedArgs = new object [applyArgs.length]; for (int i = 0; i < convertedArgs.Length; i++) { convertedArgs [i] = context.FromComObject(applyArgs [i]); } return(context.ToComObject(Invoke(context.FromComObject(thisArg), convertedArgs))); }
object Invoke(string methodName, params object [] args) => context.FromComObject(ComInvoke(methodName, context.ToComObjectArray(args)));