Ejemplo n.º 1
0
        // Token: 0x0600118C RID: 4492 RVA: 0x00056B68 File Offset: 0x00054D68
        private void gmethod_3173(Class_285 arg_0, CultureInfo arg_1, Class_321?arg_2, Class_320?arg_3, Class_315?arg_4, int?arg_5, string str_0)
        {
            if (arg_1 != null)
            {
                arg_0.prop_14 = arg_1;
            }
            if (arg_2 != null)
            {
                arg_0.prop_4 = arg_2.Value;
            }
            if (arg_3 != null)
            {
                arg_0.prop_5 = arg_3.Value;
            }
            if (arg_4 != null)
            {
                arg_0.prop_6 = arg_4.Value;
            }
            if (this.field_25)
            {
                arg_0.prop_8 = arg_5;
            }
            if (this.field_28)
            {
                arg_0.prop_7 = str_0;
            }
            Class_409 class_ = arg_0 as Class_409;

            if (class_ != null)
            {
                class_.field_11 = null;
            }
        }
Ejemplo n.º 2
0
        // Token: 0x060014B6 RID: 5302 RVA: 0x0005F590 File Offset: 0x0005D790
        public static Class_459 gmethod_3783(string str_0, Class_435 arg_0)
        {
            Class_517.ArgumentNotNull(str_0, "json");
            Class_459 result;

            using (Class_285 class_ = new Class_409(new StringReader(str_0)))
            {
                result = Class_459.xmethod_3781(class_, arg_0);
            }
            return(result);
        }
Ejemplo n.º 3
0
        // Token: 0x06001128 RID: 4392 RVA: 0x00055AEC File Offset: 0x00053CEC
        public static void PopulateObject(string value, object target, Class_380 settings)
        {
            Class_418 class_ = Class_418.tmethod_3162(settings);

            using (Class_285 class_2 = new Class_409(new StringReader(value)))
            {
                class_.vmethod_3165(class_2, target);
                if (class_2.vmethod_1885() && class_2.prop_9 != Class_508.Comment)
                {
                    throw new Class_417("Additional text found in JSON string after finishing deserializing object.");
                }
            }
        }
Ejemplo n.º 4
0
        // Token: 0x0600129A RID: 4762 RVA: 0x00059D34 File Offset: 0x00057F34
        public static Class_424 tmethod_3352(string str_0)
        {
            Class_424 result;

            using (Class_285 class_ = new Class_409(new StringReader(str_0)))
            {
                Class_424 class_2 = Class_424.xmethod_3351(class_);
                if (class_.vmethod_1885() && class_.prop_9 != Class_508.Comment)
                {
                    throw Class_414.lmethod_3098(class_, "Additional text found in JSON string after parsing content.");
                }
                result = class_2;
            }
            return(result);
        }
Ejemplo n.º 5
0
        // Token: 0x06001122 RID: 4386 RVA: 0x000559E8 File Offset: 0x00053BE8
        public static object DeserializeObject(string value, Type type, Class_380 settings)
        {
            Class_517.ArgumentNotNull(value, "value");
            Class_418 class_ = Class_418.tmethod_3162(settings);

            if (!class_.pmethod_3159())
            {
                class_.prop_26 = true;
            }
            object result;

            using (Class_409 class_2 = new Class_409(new StringReader(value)))
            {
                result = class_.smethod_3170(class_2, type);
            }
            return(result);
        }
Ejemplo n.º 6
0
        // Token: 0x0600118B RID: 4491 RVA: 0x000568E4 File Offset: 0x00054AE4
        private void tmethod_3172(Class_285 arg_0, out CultureInfo arg_1, out Class_321?arg_2, out Class_320?arg_3, out Class_315?arg_4, out int?arg_5, out string arg_6)
        {
            if (this.field_23 != null && !this.field_23.Equals(arg_0.prop_14))
            {
                arg_1         = arg_0.prop_14;
                arg_0.prop_14 = this.field_23;
            }
            else
            {
                arg_1 = null;
            }
            if (this.field_18 != null && arg_0.prop_4 != this.field_18)
            {
                arg_2        = new Class_321?(arg_0.prop_4);
                arg_0.prop_4 = this.field_18.Value;
            }
            else
            {
                arg_2 = null;
            }
            if (this.field_19 != null && arg_0.prop_5 != this.field_19)
            {
                arg_3        = new Class_320?(arg_0.prop_5);
                arg_0.prop_5 = this.field_19.Value;
            }
            else
            {
                arg_3 = null;
            }
            if (this.field_21 != null && arg_0.prop_6 != this.field_21)
            {
                arg_4        = new Class_315?(arg_0.prop_6);
                arg_0.prop_6 = this.field_21.Value;
            }
            else
            {
                arg_4 = null;
            }
            if (this.field_25 && arg_0.prop_8 != this.field_24)
            {
                arg_5        = arg_0.prop_8;
                arg_0.prop_8 = this.field_24;
            }
            else
            {
                arg_5 = null;
            }
            if (this.field_28 && arg_0.prop_7 != this.field_27)
            {
                arg_6        = arg_0.prop_7;
                arg_0.prop_7 = this.field_27;
            }
            else
            {
                arg_6 = null;
            }
            Class_409 class_ = arg_0 as Class_409;

            if (class_ != null)
            {
                Class_441 class_2 = this.field_11 as Class_441;
                if (class_2 != null)
                {
                    class_.field_11 = class_2.gmethod_3553().field_1;
                }
            }
        }