示例#1
0
        // Token: 0x06001562 RID: 5474 RVA: 0x000668E0 File Offset: 0x00064AE0
        private void cmethod_3934(Class_296 arg_0, IDictionary arg_1, Class_453 arg_2, Class_454 arg_3, Class_350 arg_4, Class_454 arg_5)
        {
            Class_503 class_ = arg_1 as Class_503;
            object    obj    = (class_ != null) ? class_.prop_0 : arg_1;

            this.vmethod_3915(arg_0, arg_2, obj);
            this.field_2.Add(obj);
            this.pmethod_3919(arg_0, obj, arg_2, arg_3, arg_4, arg_5);
            if (arg_2.prop_0 == null)
            {
                arg_2.prop_0 = this.field_3.field_11.tmethod_3542(arg_2.prop_2 ?? typeof(object));
            }
            if (arg_2.prop_3 == null)
            {
                arg_2.prop_3 = this.field_3.field_11.tmethod_3542(arg_2.prop_1 ?? typeof(object));
            }
            int sayıInt_ = arg_0.prop_1;

            foreach (object obj2 in arg_1)
            {
                DictionaryEntry dictionaryEntry = (DictionaryEntry)obj2;
                bool            bool_;
                string          text = this.vmethod_3935(arg_0, dictionaryEntry.Key, arg_2.prop_3, out bool_);
                text = ((arg_2.prop_0 != null) ? arg_2.prop_0(text) : text);
                try
                {
                    object    value   = dictionaryEntry.Value;
                    Class_349 class_2 = arg_2.prop_1 ?? this.cmethod_3904(value);
                    if (this.lmethod_3908(value, null, class_2, arg_2, arg_3))
                    {
                        arg_0.cmethod_2014(text, bool_);
                        this.xmethod_3911(arg_0, value);
                    }
                    else if (this.smethod_3910(arg_0, value, null, class_2, arg_2, arg_3))
                    {
                        arg_0.cmethod_2014(text, bool_);
                        this.dmethod_3906(arg_0, value, class_2, null, arg_2, arg_3);
                    }
                }
                catch (Exception arg_6)
                {
                    if (!base.smethod_3850(obj, arg_2, text, null, arg_0.prop_3, arg_6))
                    {
                        throw;
                    }
                    this.dmethod_3936(arg_0, sayıInt_);
                }
            }
            arg_0.lmethod_2008();
            this.field_2.RemoveAt(this.field_2.Count - 1);
            this.dmethod_3916(arg_0, arg_2, obj);
        }
示例#2
0
        // Token: 0x0600155D RID: 5469 RVA: 0x000662D4 File Offset: 0x000644D4
        private bool pmethod_3929(Class_296 arg_0, object obje_0, Class_447 arg_1, Class_454 arg_2, Class_350 arg_3, Class_454 arg_4)
        {
            bool flag  = this.kmethod_3907(arg_1, arg_2, arg_3, arg_4) ?? this.gmethod_3923(this.field_3.field_2, Class_375.Arrays);
            bool flag2 = this.gmethod_3933(Class_494.Arrays, arg_1, arg_2, arg_3, arg_4);
            bool flag3 = flag || flag2;

            if (flag3)
            {
                arg_0.kmethod_2007();
                if (flag)
                {
                    this.smethod_3920(arg_0, arg_1.prop_0, obje_0);
                }
                if (flag2)
                {
                    this.xmethod_3921(arg_0, obje_0.GetType());
                }
                arg_0.cmethod_2014("$values", false);
            }
            if (arg_1.prop_0 == null)
            {
                arg_1.prop_0 = this.field_3.field_11.tmethod_3542(arg_1.prop_0 ?? typeof(object));
            }
            return(flag3);
        }
示例#3
0
 // Token: 0x06001461 RID: 5217 RVA: 0x0005F0A8 File Offset: 0x0005D2A8
 internal void xmethod_3701(Class_296 arg_0)
 {
     if (this.field_5)
     {
         arg_0.cmethod_2014(this.prop_1, false);
         return;
     }
     arg_0.gmethod_2013(this.prop_1);
 }
示例#4
0
        // Token: 0x06001555 RID: 5461 RVA: 0x00065E04 File Offset: 0x00064004
        private void xmethod_3921(Class_296 arg_0, Type arg_1)
        {
            string typeName = Class_514.GetTypeName(arg_1, this.field_3.field_1, this.field_3.field_13);

            if (this.field_4 != null && this.field_4.prop_0 >= TraceLevel.Verbose)
            {
                this.field_4.gmethod_2303(TraceLevel.Verbose, Class_326.FormatMessage(null, arg_0.prop_4, "Writing type name '{0}' for {1}.".FormatWith(CultureInfo.InvariantCulture, typeName, arg_1)), null);
            }
            arg_0.cmethod_2014("$type", false);
            arg_0.kmethod_2037(typeName);
        }
示例#5
0
        // Token: 0x06001554 RID: 5460 RVA: 0x00065D94 File Offset: 0x00063F94
        private void smethod_3920(Class_296 arg_0, Type arg_1, object obje_0)
        {
            string text = this.tmethod_3912(arg_0, obje_0);

            if (this.field_4 != null && this.field_4.prop_0 >= TraceLevel.Verbose)
            {
                this.field_4.gmethod_2303(TraceLevel.Verbose, Class_326.FormatMessage(null, arg_0.prop_4, "Writing object reference Id '{0}' for {1}.".FormatWith(CultureInfo.InvariantCulture, text, arg_1)), null);
            }
            arg_0.cmethod_2014("$id", false);
            arg_0.kmethod_2037(text);
        }
示例#6
0
        // Token: 0x0600154B RID: 5451 RVA: 0x00065714 File Offset: 0x00063914
        private void xmethod_3911(Class_296 arg_0, object obje_0)
        {
            string text = this.tmethod_3912(arg_0, obje_0);

            if (this.field_4 != null && this.field_4.prop_0 >= TraceLevel.Info)
            {
                this.field_4.gmethod_2303(TraceLevel.Info, Class_326.FormatMessage(null, arg_0.prop_4, "Writing object reference to Id '{0}' for {1}.".FormatWith(CultureInfo.InvariantCulture, text, obje_0.GetType())), null);
            }
            arg_0.kmethod_2007();
            arg_0.cmethod_2014("$ref", false);
            arg_0.kmethod_2037(text);
            arg_0.lmethod_2008();
        }
示例#7
0
 // Token: 0x06001545 RID: 5445 RVA: 0x000651AC File Offset: 0x000633AC
 private void vmethod_3905(Class_296 arg_0, object obje_0, Class_369 arg_1, Class_454 arg_2, Class_350 arg_3, Class_454 arg_4)
 {
     if (arg_1.prop_0 == Class_496.Bytes)
     {
         bool flag = this.gmethod_3933(Class_494.Objects, arg_1, arg_2, arg_3, arg_4);
         if (flag)
         {
             arg_0.kmethod_2007();
             this.xmethod_3921(arg_0, arg_1.prop_1);
             arg_0.cmethod_2014("$value", false);
             Class_296.pmethod_2079(arg_0, arg_1.prop_0, obje_0);
             arg_0.lmethod_2008();
             return;
         }
     }
     Class_296.pmethod_2079(arg_0, arg_1.prop_0, obje_0);
 }