예제 #1
0
        public static JsReturn Return(object o)
        {
            JsReturn ret = new JsReturn();

            ret.Value = o;
            return(ret);
        }
예제 #2
0
        public static JsReturn RaiseEvent(JsTelegram telegram)
        {
            object     ret  = null;
            string     name = telegram.ObjName;
            object     obj  = m_objects[name];
            Type       t    = obj.GetType();
            ObjectInfo info = m_info_objects[name];

            System.Reflection.MethodInfo method = t.GetMethod(telegram.MethodName);
            ret = method.Invoke(obj, telegram.Parameters.ToArray());

            return(JsReturn.Return(ret));
        }