示例#1
0
        private void onInvoke(RAIS_R r, object data)
        {
            OM_Invoke  e  = (OM_Invoke)data;
            MethodInfo mi = r.Instance.GetType().GetMethod(e.MethodName);

            mi.Invoke(r.Instance, e.Parameters);
        }
示例#2
0
        public void Invoke(string methodName, object[] ps)
        {
            MethodInfo mi = _type.GetMethod(methodName);

            if (mi.IsStatic)
            {
                mi.Invoke(null, ps);
            }
            else
            {
                OM_Invoke             data = new OM_Invoke(methodName, ps);
                delegateOnGetInstance eh   = new delegateOnGetInstance(onInvoke);
                WorkOnAllInstances(eh, data);
            }
        }