Ejemplo n.º 1
0
        // Token: 0x06001618 RID: 5656 RVA: 0x00068E90 File Offset: 0x00067090
        public virtual Func <T> pmethod_4019 <T>(Type arg_0)
        {
            DynamicMethod dynamicMethod = Class_481.vmethod_4015("Create" + arg_0.FullName, typeof(T), Class_514.EmptyTypes, arg_0);

            dynamicMethod.InitLocals = true;
            ILGenerator ilgenerator = dynamicMethod.GetILGenerator();

            this.smethod_4020(arg_0, ilgenerator);
            return((Func <T>)dynamicMethod.CreateDelegate(typeof(Func <T>)));
        }
Ejemplo n.º 2
0
        // Token: 0x06001615 RID: 5653 RVA: 0x00068AE0 File Offset: 0x00066CE0
        public virtual Class_482 <object> dmethod_4016(MethodBase arg_0)
        {
            DynamicMethod dynamicMethod = Class_481.vmethod_4015(arg_0.ToString(), typeof(object), new Type[]
            {
                typeof(object[])
            }, arg_0.DeclaringType);
            ILGenerator ilgenerator = dynamicMethod.GetILGenerator();

            this.lmethod_4018(arg_0, ilgenerator, 0);
            return((Class_482 <object>)dynamicMethod.CreateDelegate(typeof(Class_482 <object>)));
        }
Ejemplo n.º 3
0
        // Token: 0x0600161A RID: 5658 RVA: 0x00068F70 File Offset: 0x00067170
        public virtual Func <T, object> xmethod_4021 <T>(PropertyInfo arg_0)
        {
            DynamicMethod dynamicMethod = Class_481.vmethod_4015("Get" + arg_0.Name, typeof(T), new Type[]
            {
                typeof(object)
            }, arg_0.DeclaringType);
            ILGenerator ilgenerator = dynamicMethod.GetILGenerator();

            this.tmethod_4022(arg_0, ilgenerator);
            return((Func <T, object>)dynamicMethod.CreateDelegate(typeof(Func <T, object>)));
        }
Ejemplo n.º 4
0
        // Token: 0x06001620 RID: 5664 RVA: 0x00069224 File Offset: 0x00067424
        public virtual Action <T, object> kmethod_4027 <T>(PropertyInfo arg_0)
        {
            DynamicMethod dynamicMethod = Class_481.vmethod_4015("Set" + arg_0.Name, null, new Type[]
            {
                typeof(T),
                typeof(object)
            }, arg_0.DeclaringType);
            ILGenerator ilgenerator = dynamicMethod.GetILGenerator();

            Class_481.lmethod_4028(arg_0, ilgenerator);
            return((Action <T, object>)dynamicMethod.CreateDelegate(typeof(Action <T, object>)));
        }
Ejemplo n.º 5
0
        // Token: 0x0600161C RID: 5660 RVA: 0x0006904C File Offset: 0x0006724C
        public virtual Func <T, object> gmethod_4023 <T>(FieldInfo arg_0)
        {
            if (arg_0.IsLiteral)
            {
                Class_481 <T> .NClass_0 nclass_ = new Class_481 <T> .NClass_0();

                nclass_.constantValue = arg_0.GetValue(null);
                return(new Func <T, object>(nclass_.< CreateGet > b__0));
            }
            DynamicMethod dynamicMethod = Class_481.vmethod_4015("Get" + arg_0.Name, typeof(T), new Type[]
            {
                typeof(object)
            }, arg_0.DeclaringType);
            ILGenerator ilgenerator = dynamicMethod.GetILGenerator();

            this.cmethod_4024(arg_0, ilgenerator);
            return((Func <T, object>)dynamicMethod.CreateDelegate(typeof(Func <T, object>)));
        }