Esempio n. 1
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();
        }
Esempio n. 2
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();
 }
Esempio n. 3
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();
        }
Esempio n. 4
0
        // Token: 0x0600155A RID: 5466 RVA: 0x00065F98 File Offset: 0x00064198
        private void dmethod_3926(Class_296 arg_0, IEnumerable arg_1, Class_447 arg_2, Class_454 arg_3, Class_350 arg_4, Class_454 arg_5)
        {
            Class_500 class_ = arg_1 as Class_500;
            object    obj    = (class_ != null) ? class_.prop_0 : arg_1;

            this.vmethod_3915(arg_0, arg_2, obj);
            this.field_2.Add(obj);
            bool flag = this.pmethod_3929(arg_0, obj, arg_2, arg_3, arg_4, arg_5);

            arg_0.pmethod_2009();
            int sayıInt_ = arg_0.prop_1;
            int num      = 0;

            foreach (object obje_ in arg_1)
            {
                try
                {
                    Class_349 class_2 = arg_2.prop_1 ?? this.cmethod_3904(obje_);
                    if (this.lmethod_3908(obje_, null, class_2, arg_2, arg_3))
                    {
                        this.xmethod_3911(arg_0, obje_);
                    }
                    else if (this.smethod_3910(arg_0, obje_, null, class_2, arg_2, arg_3))
                    {
                        this.dmethod_3906(arg_0, obje_, class_2, null, arg_2, arg_3);
                    }
                }
                catch (Exception arg_6)
                {
                    if (!base.smethod_3850(obj, arg_2, num, null, arg_0.prop_3, arg_6))
                    {
                        throw;
                    }
                    this.dmethod_3936(arg_0, sayıInt_);
                }
                finally
                {
                    num++;
                }
            }
            arg_0.smethod_2010();
            if (flag)
            {
                arg_0.lmethod_2008();
            }
            this.field_2.RemoveAt(this.field_2.Count - 1);
            this.dmethod_3916(arg_0, arg_2, obj);
        }
Esempio n. 5
0
        // Token: 0x0600102F RID: 4143 RVA: 0x00050DF4 File Offset: 0x0004EFF4
        private void dmethod_2966(Class_296 arg_0, Class_387 arg_1, XmlNamespaceManager arg_2, bool bool_0)
        {
            Dictionary <string, List <Class_387> > dictionary = new Dictionary <string, List <Class_387> >();

            for (int i = 0; i < arg_1.prop_2.Count; i++)
            {
                Class_387        class_ = arg_1.prop_2[i];
                string           key    = this.cmethod_2964(class_, arg_2);
                List <Class_387> list;
                if (!dictionary.TryGetValue(key, out list))
                {
                    list = new List <Class_387>();
                    dictionary.Add(key, list);
                }
                list.Add(class_);
            }
            foreach (KeyValuePair <string, List <Class_387> > keyValuePair in dictionary)
            {
                List <Class_387> value = keyValuePair.Value;
                if (value.Count == 1 && !this.vmethod_2965(value[0]))
                {
                    this.kmethod_2967(arg_0, value[0], arg_2, bool_0);
                }
                else
                {
                    string key2 = keyValuePair.Key;
                    if (bool_0)
                    {
                        arg_0.gmethod_2013(key2);
                    }
                    arg_0.pmethod_2009();
                    for (int j = 0; j < value.Count; j++)
                    {
                        this.kmethod_2967(arg_0, value[j], arg_2, false);
                    }
                    arg_0.smethod_2010();
                }
            }
        }
Esempio n. 6
0
        // Token: 0x06000BF4 RID: 3060 RVA: 0x00042A2C File Offset: 0x00040C2C
        public virtual void lmethod_2148(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            DataTable dataTable = (DataTable)obje_0;
            Class_441 class_    = arg_1.prop_14 as Class_441;

            arg_0.pmethod_2009();
            foreach (object obj in dataTable.Rows)
            {
                DataRow dataRow = (DataRow)obj;
                arg_0.kmethod_2007();
                foreach (object obj2 in dataRow.Table.Columns)
                {
                    DataColumn dataColumn = (DataColumn)obj2;
                    if (arg_1.prop_8 != Class_457.Ignore || (dataRow[dataColumn] != null && dataRow[dataColumn] != DBNull.Value))
                    {
                        arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590(dataColumn.ColumnName) : dataColumn.ColumnName);
                        arg_1.kmethod_3177(arg_0, dataRow[dataColumn]);
                    }
                }
                arg_0.lmethod_2008();
            }
            arg_0.smethod_2010();
        }
Esempio n. 7
0
        // Token: 0x06001386 RID: 4998 RVA: 0x0005C14C File Offset: 0x0005A34C
        private void dmethod_3536(string str_0, Class_296 arg_0, Class_463 arg_1)
        {
            IList <Class_463> list;

            if (Enum.IsDefined(typeof(Class_463), arg_1))
            {
                list = new List <Class_463>
                {
                    arg_1
                };
            }
            else
            {
                IEnumerable <Class_463> flagsValues = Class_505.GetFlagsValues <Class_463>(arg_1);
                if (Class_436.field_2 == null)
                {
                    Class_436.field_2 = new Func <Class_463, bool>(Class_436.lmethod_3538);
                }
                list = flagsValues.Where(Class_436.field_2).ToList <Class_463>();
            }
            if (list.Count == 0)
            {
                return;
            }
            arg_0.gmethod_2013(str_0);
            if (list.Count == 1)
            {
                arg_0.kmethod_2037(Class_460.gmethod_3803(list[0]));
                return;
            }
            arg_0.pmethod_2009();
            foreach (Class_463 arg_2 in list)
            {
                arg_0.kmethod_2037(Class_460.gmethod_3803(arg_2));
            }
            arg_0.smethod_2010();
        }