Exemplo n.º 1
0
        // Token: 0x06001542 RID: 5442 RVA: 0x0006509C File Offset: 0x0006329C
        public void tmethod_3902(Class_296 arg_0, object obje_0, Type arg_1)
        {
            if (arg_0 == null)
            {
                throw new ArgumentNullException("jsonWriter");
            }
            this.field_0 = ((arg_1 != null) ? this.field_3.field_11.tmethod_3542(arg_1) : null);
            this.field_1 = this.field_2.Count + 1;
            Class_349 class_ = this.cmethod_3904(obje_0);

            try
            {
                this.dmethod_3906(arg_0, obje_0, class_, null, null, null);
            }
            catch (Exception arg_2)
            {
                if (!base.smethod_3850(null, class_, null, null, arg_0.prop_4, arg_2))
                {
                    base.pmethod_3849();
                    throw;
                }
                this.dmethod_3936(arg_0, 0);
            }
            finally
            {
                this.field_0 = null;
            }
        }
Exemplo n.º 2
0
        private void smethod_3930(Class_296 arg_0, ISerializable arg_1, Class_367 arg_2, Class_454 arg_3, Class_350 arg_4, Class_454 arg_5)
        {
            if (!Class_470.FullyTrusted)
            {
                string text = "Type '{0}' implements ISerializable but cannot be serialized using the ISerializable interface because the current application is not fully trusted and ISerializable can expose secure data." + Environment.NewLine + "To fix this error either change the environment to be fully trusted, change the application to not deserialize the type, add JsonObjectAttribute to the type or change the JsonSerializer setting ContractResolver to use a new DefaultContractResolver with IgnoreSerializableInterface set to true." + Environment.NewLine;
                text = text.FormatWith(CultureInfo.InvariantCulture, arg_1.GetType());
                throw Class_417.gmethod_3103(null, arg_0.prop_3, text, null);
            }
            this.vmethod_3915(arg_0, arg_2, arg_1);
            this.field_2.Add(arg_1);
            this.pmethod_3919(arg_0, arg_1, arg_2, arg_3, arg_4, arg_5);
            SerializationInfo serializationInfo = new SerializationInfo(arg_2.prop_0, new FormatterConverter());

            arg_1.GetObjectData(serializationInfo, this.field_3.field_14);
            foreach (SerializationEntry serializationEntry in serializationInfo)
            {
                Class_349 class_ = this.cmethod_3904(serializationEntry.Value);
                if (this.lmethod_3908(serializationEntry.Value, null, class_, arg_2, arg_3))
                {
                    arg_0.gmethod_2013(serializationEntry.Name);
                    this.xmethod_3911(arg_0, serializationEntry.Value);
                }
                else if (this.smethod_3910(arg_0, serializationEntry.Value, null, class_, arg_2, arg_3))
                {
                    arg_0.gmethod_2013(serializationEntry.Name);
                    this.dmethod_3906(arg_0, serializationEntry.Value, class_, null, arg_2, arg_3);
                }
            }
            arg_0.lmethod_2008();
            this.field_2.RemoveAt(this.field_2.Count - 1);
            this.dmethod_3916(arg_0, arg_2, arg_1);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
        // Token: 0x06000F7E RID: 3966 RVA: 0x0004FC04 File Offset: 0x0004DE04
        public virtual void dmethod_2806(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            string str_;

            if (obje_0 is DateTime)
            {
                DateTime dateTime = (DateTime)obje_0;
                if ((this.field_1 & DateTimeStyles.AdjustToUniversal) == DateTimeStyles.AdjustToUniversal || (this.field_1 & DateTimeStyles.AssumeUniversal) == DateTimeStyles.AssumeUniversal)
                {
                    dateTime = dateTime.ToUniversalTime();
                }
                str_ = dateTime.ToString(this.field_2 ?? "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK", this.prop_2);
            }
            else
            {
                if (!(obje_0 is DateTimeOffset))
                {
                    throw new Class_417("Unexpected value when converting date. Expected DateTime or DateTimeOffset, got {0}.".FormatWith(CultureInfo.InvariantCulture, Class_514.GetObjectType(obje_0)));
                }
                DateTimeOffset dateTimeOffset = (DateTimeOffset)obje_0;
                if ((this.field_1 & DateTimeStyles.AdjustToUniversal) == DateTimeStyles.AdjustToUniversal || (this.field_1 & DateTimeStyles.AssumeUniversal) == DateTimeStyles.AssumeUniversal)
                {
                    dateTimeOffset = dateTimeOffset.ToUniversalTime();
                }
                str_ = dateTimeOffset.ToString(this.field_2 ?? "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK", this.prop_2);
            }
            arg_0.kmethod_2037(str_);
        }
Exemplo n.º 5
0
 // Token: 0x06001563 RID: 5475 RVA: 0x00066B28 File Offset: 0x00064D28
 private string vmethod_3935(Class_296 arg_0, object obje_0, Class_349 arg_1, out bool arg_2)
 {
     if (arg_1.field_5 == Class_448.Primitive)
     {
         Class_369 class_ = (Class_369)arg_1;
         if (class_.prop_0 == Class_496.DateTime || class_.prop_0 == Class_496.DateTimeNullable)
         {
             arg_2 = false;
             StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
             Class_502.WriteDateTimeString(stringWriter, (DateTime)obje_0, arg_0.prop_6, arg_0.prop_10, arg_0.prop_11);
             return(stringWriter.ToString());
         }
         if (class_.prop_0 == Class_496.DateTimeOffset || class_.prop_0 == Class_496.DateTimeOffsetNullable)
         {
             arg_2 = false;
             StringWriter stringWriter2 = new StringWriter(CultureInfo.InvariantCulture);
             Class_502.WriteDateTimeOffsetString(stringWriter2, (DateTimeOffset)obje_0, arg_0.prop_6, arg_0.prop_10, arg_0.prop_11);
             return(stringWriter2.ToString());
         }
         arg_2 = true;
         return(Convert.ToString(obje_0, CultureInfo.InvariantCulture));
     }
     else
     {
         string result;
         if (Class_467.gmethod_3913(obje_0, obje_0.GetType(), out result))
         {
             arg_2 = true;
             return(result);
         }
         arg_2 = true;
         return(obje_0.ToString());
     }
 }
Exemplo n.º 6
0
        // Token: 0x06000C03 RID: 3075 RVA: 0x00042F80 File Offset: 0x00041180
        public virtual void smethod_2160(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_441 class_ = arg_1.prop_14 as Class_441;
            Type      type   = obje_0.GetType();
            Class_489 <object, object> getUnionFields = Class_484.GetUnionFields;
            object target = null;

            object[] array = new object[3];
            array[0] = obje_0;
            array[1] = type;
            object arg  = getUnionFields(target, array);
            object arg2 = Class_484.GetUnionCaseInfo(arg);
            object obj  = Class_484.GetUnionCaseFields(arg);
            object obj2 = Class_484.GetUnionCaseInfoName(arg2);

            object[] array2 = obj as object[];
            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Case") : "Case");
            arg_0.kmethod_2037((string)obj2);
            if (array2 != null && array2.Length > 0)
            {
                arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Fields") : "Fields");
                arg_1.kmethod_3177(arg_0, obj);
            }
            arg_0.lmethod_2008();
        }
Exemplo n.º 7
0
        // Token: 0x06000A71 RID: 2673 RVA: 0x0003D980 File Offset: 0x0003BB80
        public virtual void dmethod_1816(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_275 class_ = obje_0 as Class_275;

            if (class_ == null)
            {
                throw new ArgumentException("invalid data to serialize");
            }
            arg_0.pmethod_2009();
            arg_0.pmethod_2009();
            arg_0.kmethod_2037(class_.prop_0);
            arg_0.smethod_2010();
            arg_0.pmethod_2009();
            foreach (Class_275.NClass_0 nclass_ in class_.prop_1)
            {
                arg_0.kmethod_2037(nclass_.nprop_0);
            }
            arg_0.smethod_2010();
            arg_0.pmethod_2009();
            int num = 0;

            foreach (Class_275.NClass_0 nclass_2 in class_.prop_1)
            {
                arg_0.lmethod_2038(0);
                arg_0.lmethod_2038(num++);
                arg_0.kmethod_2037(Class_223.smethod_1470(nclass_2.nprop_1, nclass_2.nprop_2).ToBase64());
            }
            arg_0.smethod_2010();
            arg_0.smethod_2010();
        }
Exemplo n.º 8
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();
        }
Exemplo n.º 9
0
 // Token: 0x06001550 RID: 5456 RVA: 0x00065914 File Offset: 0x00063B14
 private void dmethod_3916(Class_296 arg_0, Class_349 arg_1, object 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, "Finished serializing {0}".FormatWith(CultureInfo.InvariantCulture, arg_1.prop_0)), null);
     }
     arg_1.cmethod_2344(obje_0, this.field_3.field_14);
 }
Exemplo n.º 10
0
        // Token: 0x060014B8 RID: 5304 RVA: 0x0005F5F0 File Offset: 0x0005D7F0
        public void vmethod_3785(Class_296 arg_0, Class_435 arg_1)
        {
            Class_517.ArgumentNotNull(arg_0, "writer");
            Class_517.ArgumentNotNull(arg_1, "resolver");
            Class_436 class_ = new Class_436(arg_0, arg_1);

            class_.gmethod_3533(this);
        }
Exemplo n.º 11
0
 // Token: 0x06001387 RID: 4999 RVA: 0x0005C240 File Offset: 0x0005A440
 private void kmethod_3537(Class_296 arg_0, string str_0, object obje_0)
 {
     if (obje_0 != null)
     {
         arg_0.gmethod_2013(str_0);
         arg_0.cmethod_2074(obje_0);
     }
 }
Exemplo n.º 12
0
        // Token: 0x06001551 RID: 5457 RVA: 0x00065980 File Offset: 0x00063B80
        private void kmethod_3917(Class_296 arg_0, object obje_0, Class_464 arg_1, Class_454 arg_2, Class_350 arg_3, Class_454 arg_4)
        {
            this.vmethod_3915(arg_0, arg_1, obje_0);
            this.field_2.Add(obje_0);
            this.pmethod_3919(arg_0, obje_0, arg_1, arg_2, arg_3, arg_4);
            int sayıInt_ = arg_0.prop_1;

            for (int i = 0; i < arg_1.prop_2.Count; i++)
            {
                Class_454 class_ = arg_1.prop_2[i];
                try
                {
                    Class_349 arg_5;
                    object    obje_;
                    if (this.lmethod_3918(arg_0, obje_0, arg_1, arg_2, class_, out arg_5, out obje_))
                    {
                        class_.xmethod_3701(arg_0);
                        this.dmethod_3906(arg_0, obje_, arg_5, class_, arg_1, arg_2);
                    }
                }
                catch (Exception arg_6)
                {
                    if (!base.smethod_3850(obje_0, arg_1, class_.prop_1, null, arg_0.prop_3, arg_6))
                    {
                        throw;
                    }
                    this.dmethod_3936(arg_0, sayıInt_);
                }
            }
            if (arg_1.prop_10 != null)
            {
                IEnumerable <KeyValuePair <object, object> > enumerable = arg_1.prop_10(obje_0);
                if (enumerable != null)
                {
                    foreach (KeyValuePair <object, object> keyValuePair in enumerable)
                    {
                        Class_349 arg_7   = this.cmethod_3904(keyValuePair.Key);
                        Class_349 class_2 = this.cmethod_3904(keyValuePair.Value);
                        bool      flag;
                        string    str_ = this.vmethod_3935(arg_0, keyValuePair.Key, arg_7, out flag);
                        if (this.lmethod_3908(keyValuePair.Value, null, class_2, arg_1, arg_2))
                        {
                            arg_0.gmethod_2013(str_);
                            this.xmethod_3911(arg_0, keyValuePair.Value);
                        }
                        else if (this.smethod_3910(arg_0, keyValuePair.Value, null, class_2, arg_1, arg_2))
                        {
                            arg_0.gmethod_2013(str_);
                            this.dmethod_3906(arg_0, keyValuePair.Value, class_2, null, arg_1, arg_2);
                        }
                    }
                }
            }
            arg_0.lmethod_2008();
            this.field_2.RemoveAt(this.field_2.Count - 1);
            this.dmethod_3916(arg_0, arg_1, obje_0);
        }
Exemplo n.º 13
0
        // Token: 0x0600154E RID: 5454 RVA: 0x00065870 File Offset: 0x00063A70
        private void cmethod_3914(Class_296 arg_0, object obje_0, Class_469 arg_1)
        {
            this.vmethod_3915(arg_0, arg_1, obje_0);
            string str_;

            Class_467.gmethod_3913(obje_0, arg_1.prop_0, out str_);
            arg_0.kmethod_2037(str_);
            this.dmethod_3916(arg_0, arg_1, obje_0);
        }
Exemplo n.º 14
0
 // Token: 0x0600129D RID: 4765 RVA: 0x00059DF4 File Offset: 0x00057FF4
 public virtual void vmethod_3355(Class_296 arg_0, params Class_299[] arg_1)
 {
     arg_0.pmethod_2009();
     for (int i = 0; i < this.field_0.Count; i++)
     {
         this.field_0[i].cmethod_2474(arg_0, arg_1);
     }
     arg_0.smethod_2010();
 }
Exemplo n.º 15
0
 // Token: 0x06001263 RID: 4707 RVA: 0x00059688 File Offset: 0x00057888
 public virtual void gmethod_3313(Class_296 arg_0, params Class_299[] arg_1)
 {
     arg_0.kmethod_2007();
     for (int i = 0; i < this.field_0.Count; i++)
     {
         this.field_0[i].cmethod_2474(arg_0, arg_1);
     }
     arg_0.lmethod_2008();
 }
Exemplo n.º 16
0
 // Token: 0x060015A3 RID: 5539 RVA: 0x000670E4 File Offset: 0x000652E4
 internal virtual void kmethod_3997(Class_296 arg_0, object obje_0, Type arg_1)
 {
     if (this.field_1 != null)
     {
         this.field_1.tmethod_3902(arg_0, obje_0, arg_1);
         return;
     }
     this.field_2.kmethod_3177(arg_0, obje_0);
 }
Exemplo n.º 17
0
 // Token: 0x0600123A RID: 4666 RVA: 0x00058DB8 File Offset: 0x00056FB8
 public virtual void cmethod_3284(Class_296 arg_0, params Class_299[] arg_1)
 {
     arg_0.xmethod_2011(this.field_0);
     foreach (Class_361 class_ in this.pmethod_2469())
     {
         class_.cmethod_2474(arg_0, arg_1);
     }
     arg_0.tmethod_2012();
 }
Exemplo n.º 18
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);
 }
Exemplo n.º 19
0
 // Token: 0x06000BE8 RID: 3048 RVA: 0x000425A0 File Offset: 0x000407A0
 public virtual void lmethod_2138(Class_296 arg_0, object obje_0, Class_418 arg_1)
 {
     if (obje_0 == null)
     {
         arg_0.gmethod_2033();
         return;
     }
     byte[] byteDizi_ = this.pmethod_2139(obje_0);
     arg_0.tmethod_2072(byteDizi_);
 }
Exemplo n.º 20
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);
        }
Exemplo n.º 21
0
        // Token: 0x06000C25 RID: 3109 RVA: 0x00043BDC File Offset: 0x00041DDC
        private void lmethod_2188(Class_296 arg_0, Regex arg_1, Class_418 arg_2)
        {
            Class_441 class_ = arg_2.prop_14 as Class_441;

            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Pattern") : "Pattern");
            arg_0.kmethod_2037(arg_1.ToString());
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Options") : "Options");
            arg_2.kmethod_3177(arg_0, arg_1.Options);
            arg_0.lmethod_2008();
        }
Exemplo n.º 22
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);
        }
Exemplo n.º 23
0
        // Token: 0x060012FF RID: 4863 RVA: 0x0005AAAC File Offset: 0x00058CAC
        public virtual void vmethod_3445(Class_296 arg_0, params Class_299[] arg_1)
        {
            arg_0.gmethod_2013(this.field_1);
            Class_361 class_ = this.prop_2;

            if (class_ != null)
            {
                class_.cmethod_2474(arg_0, arg_1);
                return;
            }
            arg_0.gmethod_2033();
        }
Exemplo n.º 24
0
        // Token: 0x06000C22 RID: 3106 RVA: 0x00043AFC File Offset: 0x00041CFC
        public virtual void vmethod_2185(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Regex     arg_2  = (Regex)obje_0;
            Class_297 class_ = arg_0 as Class_297;

            if (class_ != null)
            {
                this.kmethod_2187(class_, arg_2);
                return;
            }
            this.lmethod_2188(arg_0, arg_2, arg_1);
        }
Exemplo n.º 25
0
        // Token: 0x06000C1E RID: 3102 RVA: 0x00043A60 File Offset: 0x00041C60
        public virtual void tmethod_2182(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_298 class_  = (Class_298)obje_0;
            Class_297 class_2 = arg_0 as Class_297;

            if (class_2 != null)
            {
                class_2.lmethod_2128(class_.prop_0);
                return;
            }
            arg_0.tmethod_2072(class_.prop_0);
        }
Exemplo n.º 26
0
 // Token: 0x06001564 RID: 5476 RVA: 0x00066C17 File Offset: 0x00064E17
 private void dmethod_3936(Class_296 arg_0, int sayıInt_0)
 {
     base.pmethod_3849();
     if (arg_0.prop_2 == Class_518.Property)
     {
         arg_0.gmethod_2033();
     }
     while (arg_0.prop_1 > sayıInt_0)
     {
         arg_0.vmethod_2015();
     }
 }
Exemplo n.º 27
0
 // Token: 0x06000D60 RID: 3424 RVA: 0x00048574 File Offset: 0x00046774
 public Class_355(Class_296 arg_0)
 {
     this.field_0         = arg_0;
     this.field_2         = new StringWriter(CultureInfo.InvariantCulture);
     this.field_1         = new Class_412(this.field_2);
     this.field_1.prop_5  = Class_322.Indented;
     this.field_1.prop_11 = arg_0.prop_11;
     this.field_1.prop_6  = arg_0.prop_6;
     this.field_1.prop_10 = arg_0.prop_10;
     this.field_1.prop_7  = arg_0.prop_7;
     this.field_1.prop_9  = arg_0.prop_9;
 }
Exemplo n.º 28
0
        // Token: 0x06000C18 RID: 3096 RVA: 0x0004381C File Offset: 0x00041A1C
        public virtual void lmethod_2178(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_491 class_  = Class_308.field_2.Get(obje_0.GetType());
            Class_441 class_2 = arg_1.prop_14 as Class_441;

            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_2 != null) ? class_2.smethod_3590("Key") : "Key");
            arg_1.vmethod_3175(arg_0, class_.tmethod_4062(obje_0, "Key"), class_.cmethod_4064("Key"));
            arg_0.gmethod_2013((class_2 != null) ? class_2.smethod_3590("Value") : "Value");
            arg_1.vmethod_3175(arg_0, class_.tmethod_4062(obje_0, "Value"), class_.cmethod_4064("Value"));
            arg_0.lmethod_2008();
        }
Exemplo n.º 29
0
        // Token: 0x0600155C RID: 5468 RVA: 0x000661A8 File Offset: 0x000643A8
        private void lmethod_3928(Class_296 arg_0, Array arg_1, Class_447 arg_2, Class_454 arg_3, int sayıInt_0, int[] ıntSayıDizi_0)
        {
            int num = ıntSayıDizi_0.Length;

            int[] array = new int[num + 1];
            for (int i = 0; i < num; i++)
            {
                array[i] = ıntSayıDizi_0[i];
            }
            arg_0.pmethod_2009();
            int j = 0;

            while (j < arg_1.GetLength(num))
            {
                array[num] = j;
                bool flag = array.Length == arg_1.Rank;
                if (flag)
                {
                    object value = arg_1.GetValue(array);
                    try
                    {
                        Class_349 class_ = arg_2.prop_1 ?? this.cmethod_3904(value);
                        if (this.lmethod_3908(value, null, class_, arg_2, arg_3))
                        {
                            this.xmethod_3911(arg_0, value);
                        }
                        else if (this.smethod_3910(arg_0, value, null, class_, arg_2, arg_3))
                        {
                            this.dmethod_3906(arg_0, value, class_, null, arg_2, arg_3);
                        }
                        goto IL_F7;
                    }
                    catch (Exception arg_4)
                    {
                        if (base.smethod_3850(arg_1, arg_2, j, null, arg_0.prop_3, arg_4))
                        {
                            this.dmethod_3936(arg_0, sayıInt_0 + 1);
                            goto IL_F7;
                        }
                        throw;
                    }
                    goto IL_E7;
                }
                goto IL_E7;
IL_F7:
                j++;
                continue;
IL_E7:
                this.lmethod_3928(arg_0, arg_1, arg_2, arg_3, sayıInt_0 + 1, array);
                goto IL_F7;
            }
            arg_0.smethod_2010();
        }
Exemplo n.º 30
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);
        }