Ejemplo n.º 1
0
        public static EMethod Load(EVar value)
        {
            EMethod instance = value.TypeHandler;

            value.This();
            return(instance);
        }
Ejemplo n.º 2
0
        public EMethod Execute(MethodInfo info, object[] instances)
        {
            ILGenerator il = ThreadCache.GetIL();

            if (instances != null)
            {
                for (int i = 0; i < instances.Length; i++)
                {
                    if (instances[i] != null)
                    {
                        il.NoErrorLoad(instances[i]);
                    }
                }
            }
            MethodHelper.CallMethod(info);
            if (info.ReturnType != null)
            {
                EMethod newMethod = info.ReturnType;
                return(newMethod);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 3
0
        public static EMethod Load(EModel value)
        {
            EMethod instance;

            if (value.DelayAction != null)
            {
                instance = value.CompareType;
                value.DelayAction();
            }
            else
            {
                instance = value.TypeHandler;
                value.This();
            }

            return(instance);
        }
Ejemplo n.º 4
0
        public EMethod Execute(MethodInfo info, Action action = null)
        {
            ILGenerator il = ThreadCache.GetIL();

            if (action != null)
            {
                action();
            }
            MethodHelper.CallMethod(info);
            if (info.ReturnType != null)
            {
                EMethod newMethod = info.ReturnType;
                return(newMethod);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 5
0
        public static EMethod Load(Type type)
        {
            EMethod instance = type;

            return(instance);
        }