Beispiel #1
0
        // Token: 0x06000C08 RID: 3080 RVA: 0x00043390 File Offset: 0x00041590
        public virtual void cmethod_2164(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_306.lmethod_2168(obje_0.GetType());
            Class_441 class_ = arg_1.prop_14 as Class_441;
            string    str_   = (string)Class_306.field_4.tmethod_4062(obje_0, "Key");
            object    obj    = Class_306.field_4.tmethod_4062(obje_0, "Value");
            Type      type   = (obj != null) ? obj.GetType() : null;

            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Key") : "Key");
            arg_0.kmethod_2037(str_);
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Type") : "Type");
            arg_0.kmethod_2037((type != null) ? type.FullName : null);
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Value") : "Value");
            if (type != null)
            {
                string str_2;
                if (Class_467.gmethod_3913(obj, type, out str_2))
                {
                    arg_0.kmethod_2037(str_2);
                }
                else
                {
                    arg_0.cmethod_2074(obj);
                }
            }
            else
            {
                arg_0.gmethod_2033();
            }
            arg_0.lmethod_2008();
        }
Beispiel #2
0
        // Token: 0x06001191 RID: 4497 RVA: 0x00056C3C File Offset: 0x00054E3C
        internal virtual void lmethod_3178(Class_296 arg_0, object obje_0, Type arg_1)
        {
            Class_517.ArgumentNotNull(arg_0, "jsonWriter");
            Class_322?class_ = null;

            if (this.field_16 != null && arg_0.prop_5 != this.field_16)
            {
                class_       = new Class_322?(arg_0.prop_5);
                arg_0.prop_5 = this.field_16.Value;
            }
            Class_319?class_2 = null;

            if (this.field_17 != null && arg_0.prop_6 != this.field_17)
            {
                class_2      = new Class_319?(arg_0.prop_6);
                arg_0.prop_6 = this.field_17.Value;
            }
            Class_321?class_3 = null;

            if (this.field_18 != null && arg_0.prop_7 != this.field_18)
            {
                class_3      = new Class_321?(arg_0.prop_7);
                arg_0.prop_7 = this.field_18.Value;
            }
            Class_314?class_4 = null;

            if (this.field_20 != null && arg_0.prop_9 != this.field_20)
            {
                class_4      = new Class_314?(arg_0.prop_9);
                arg_0.prop_9 = this.field_20.Value;
            }
            Class_356?class_5 = null;

            if (this.field_22 != null && arg_0.prop_8 != this.field_22)
            {
                class_5      = new Class_356?(arg_0.prop_8);
                arg_0.prop_8 = this.field_22.Value;
            }
            CultureInfo cultureInfo = null;

            if (this.field_23 != null && !this.field_23.Equals(arg_0.prop_11))
            {
                cultureInfo   = arg_0.prop_11;
                arg_0.prop_11 = this.field_23;
            }
            string str_ = null;

            if (this.field_28 && arg_0.prop_10 != this.field_27)
            {
                str_          = arg_0.prop_10;
                arg_0.prop_10 = this.field_27;
            }
            Class_355 class_6 = (this.prop_2 != null && this.prop_2.prop_0 >= TraceLevel.Verbose) ? new Class_355(arg_0) : null;
            Class_467 class_7 = new Class_467(this);

            class_7.tmethod_3902(class_6 ?? arg_0, obje_0, arg_1);
            if (class_6 != null)
            {
                this.prop_2.gmethod_2303(TraceLevel.Verbose, "Serialized JSON: " + Environment.NewLine + class_6.smethod_2390(), null);
            }
            if (class_ != null)
            {
                arg_0.prop_5 = class_.Value;
            }
            if (class_2 != null)
            {
                arg_0.prop_6 = class_2.Value;
            }
            if (class_3 != null)
            {
                arg_0.prop_7 = class_3.Value;
            }
            if (class_4 != null)
            {
                arg_0.prop_9 = class_4.Value;
            }
            if (class_5 != null)
            {
                arg_0.prop_8 = class_5.Value;
            }
            if (this.field_28)
            {
                arg_0.prop_10 = str_;
            }
            if (cultureInfo != null)
            {
                arg_0.prop_11 = cultureInfo;
            }
        }