示例#1
0
        public static EVar CreateWithoutTempVar(object value, Type type)
        {
            EVar model = new EVar(type, null);

            model.Value = value;
            return(model);
        }
示例#2
0
        public static EMethod Load(EVar value)
        {
            EMethod instance = value.TypeHandler;

            value.This();
            return(instance);
        }
示例#3
0
        public static EVar CreateVarFromObject(object value, Type type)
        {
            EVar model = CreateVar(type);

            model.il.LoadObject(value, type);
            model.Store();
            model.Value = value;
            return(model);
        }
示例#4
0
 //对普通变量进行装箱
 public static void Packet(EVar varHandler)
 {
     Packet(varHandler.TypeHandler, () => { varHandler.This(); });
 }
示例#5
0
        public static EVar CreateVar(Type type)
        {
            EVar model = new EVar(type);

            return(model);
        }
示例#6
0
        public static EVar CreateVarFromAction(Action action, Type type = null)
        {
            EVar model = new EVar(type, action);

            return(model);
        }
示例#7
0
        public static EVar CreateVarFromBuilder(LocalBuilder builder, Type type)
        {
            EVar model = new EVar(builder, type);

            return(model);
        }
示例#8
0
        public static EVar CreateVarFromParameter(int parametersIndex, Type type = null)
        {
            EVar model = new EVar(parametersIndex, type);

            return(model);
        }