示例#1
0
 /// <summary>
 /// Asynchronously invoke the method of an a given object
 /// </summary>
 public Eval AsyncInvoke(Value objectInstance, Value[] arguments)
 {
     return(Eval.AsyncInvokeMethod(
                this,
                this.IsStatic ? null : objectInstance,
                arguments ?? new Value[0]
                ));
 }
示例#2
0
        /// <summary> Asynchronously invoke the method </summary>
        public static Eval AsyncInvokeMethod(Value objectInstance, MethodInfo methodInfo, params Value[] arguments)
        {
            CheckObject(objectInstance, methodInfo);

            return(Eval.AsyncInvokeMethod(
                       methodInfo,
                       methodInfo.IsStatic ? null : objectInstance,
                       arguments ?? new Value[0]
                       ));
        }
示例#3
0
        /// <summary> Asynchronously invoke the method </summary>
        public static Eval AsyncInvokeMethod(Thread evalThread, Value objectInstance, IMethod methodInfo, params Value[] arguments)
        {
            CheckObject(objectInstance, methodInfo);

            return(Eval.AsyncInvokeMethod(
                       evalThread,
                       (IMethod)methodInfo,
                       methodInfo.IsStatic ? null : objectInstance,
                       arguments ?? new Value[0]
                       ));
        }