Beispiel #1
0
        // Token: 0x060012A2 RID: 4770 RVA: 0x00059EB8 File Offset: 0x000580B8
        internal virtual void smethod_3360(object obje_0, Class_328 arg_0)
        {
            IEnumerable enumerable = (base.cmethod_3204(obje_0) || obje_0 is Class_424) ? ((IEnumerable)obje_0) : null;

            if (enumerable == null)
            {
                return;
            }
            Class_420.dmethod_3276(this, enumerable, arg_0);
        }
Beispiel #2
0
        // Token: 0x060011C8 RID: 4552 RVA: 0x00057940 File Offset: 0x00055B40
        internal Class_420(Class_420 arg_0) : this()
        {
            Class_517.ArgumentNotNull(arg_0, "c");
            int num = 0;

            foreach (Class_361 obje_ in ((IEnumerable <Class_361>)arg_0))
            {
                this.xmethod_3221(num, obje_, false);
                num++;
            }
        }
Beispiel #3
0
        // Token: 0x060012BD RID: 4797 RVA: 0x0005A0F0 File Offset: 0x000582F0
        private bool vmethod_3385(Class_420 arg_0)
        {
            Class_508?class_ = this.gmethod_3383(arg_0);

            if (class_ != null)
            {
                base.xmethod_1901(class_.Value);
                this.field_3 = arg_0;
                this.field_2 = arg_0;
                return(true);
            }
            return(this.xmethod_3381(arg_0));
        }
Beispiel #4
0
        // Token: 0x060012BC RID: 4796 RVA: 0x0005A0B8 File Offset: 0x000582B8
        private bool cmethod_3384(Class_420 arg_0)
        {
            Class_361 class_ = arg_0.prop_9;

            if (class_ == null)
            {
                return(this.vmethod_3385(arg_0));
            }
            this.dmethod_3386(class_);
            this.field_3 = class_;
            this.field_2 = arg_0;
            return(true);
        }
Beispiel #5
0
 // Token: 0x060012CB RID: 4811 RVA: 0x0005A480 File Offset: 0x00058680
 private void kmethod_3397(Class_420 arg_0)
 {
     if (this.field_1 == null)
     {
         this.field_0 = arg_0;
     }
     else
     {
         this.field_1.pmethod_3219(arg_0);
     }
     this.field_1 = arg_0;
     this.field_3 = arg_0;
 }
Beispiel #6
0
        // Token: 0x0600122F RID: 4655 RVA: 0x00058CB4 File Offset: 0x00056EB4
        internal virtual void lmethod_3278(object obje_0, Class_328 arg_0)
        {
            Class_421 class_ = obje_0 as Class_421;

            if (class_ == null)
            {
                return;
            }
            if (class_.prop_1 != null)
            {
                this.prop_1 = class_.prop_1;
            }
            Class_420.dmethod_3276(this, class_, arg_0);
        }
Beispiel #7
0
        // Token: 0x060011DE RID: 4574 RVA: 0x00057E3C File Offset: 0x0005603C
        internal virtual void xmethod_3211(int sayıInt_0, Class_361 arg_0)
        {
            if (sayıInt_0 < 0)
            {
                throw new ArgumentOutOfRangeException("index", "Index is less than 0.");
            }
            if (sayıInt_0 >= this.prop_0.Count)
            {
                throw new ArgumentOutOfRangeException("index", "Index is equal to or greater than Count.");
            }
            Class_361 class_ = this.prop_0[sayıInt_0];

            if (Class_420.dmethod_3216(class_, arg_0))
            {
                return;
            }
            this.smethod_3190();
            arg_0 = this.vmethod_3205(arg_0, false);
            this.kmethod_3217(arg_0, class_);
            Class_361 class_2 = (sayıInt_0 == 0) ? null : this.prop_0[sayıInt_0 - 1];
            Class_361 class_3 = (sayıInt_0 == this.prop_0.Count - 1) ? null : this.prop_0[sayıInt_0 + 1];

            arg_0.prop_1 = this;
            arg_0.prop_6 = class_2;
            if (class_2 != null)
            {
                class_2.prop_5 = arg_0;
            }
            arg_0.prop_5 = class_3;
            if (class_3 != null)
            {
                class_3.prop_6 = arg_0;
            }
            this.prop_0[sayıInt_0] = arg_0;
            class_.prop_1          = null;
            class_.prop_6          = null;
            class_.prop_5          = null;
            if (this.field_0 != null)
            {
                this.gmethod_3193(new ListChangedEventArgs(ListChangedType.ItemChanged, sayıInt_0));
            }
            if (this.field_2 != null)
            {
                this.cmethod_3194(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, arg_0, class_, sayıInt_0));
            }
        }
Beispiel #8
0
        // Token: 0x060012B7 RID: 4791 RVA: 0x00059F48 File Offset: 0x00058148
        internal virtual bool pmethod_3379()
        {
            if (base.prop_0 == Class_285.NClass_0.field_5)
            {
                this.field_3 = this.field_1;
                this.dmethod_3386(this.field_3);
                return(true);
            }
            if (this.field_3 == null)
            {
                return(false);
            }
            Class_420 class_ = this.field_3 as Class_420;

            if (class_ != null && this.field_2 != class_)
            {
                return(this.cmethod_3384(class_));
            }
            return(this.xmethod_3381(this.field_3));
        }
Beispiel #9
0
        // Token: 0x060012BB RID: 4795 RVA: 0x0005A048 File Offset: 0x00058248
        private Class_508?gmethod_3383(Class_420 arg_0)
        {
            switch (arg_0.prop_3)
            {
            case Class_428.Object:
                return(new Class_508?(Class_508.EndObject));

            case Class_428.Array:
                return(new Class_508?(Class_508.EndArray));

            case Class_428.Constructor:
                return(new Class_508?(Class_508.EndConstructor));

            case Class_428.Property:
                return(null);

            default:
                throw Class_513.CreateArgumentOutOfRangeException("Type", arg_0.prop_3, "Unexpected JContainer type.");
            }
        }
Beispiel #10
0
 // Token: 0x060012F2 RID: 4850 RVA: 0x0005A8B8 File Offset: 0x00058AB8
 internal virtual void vmethod_3435(int sayıInt_0, Class_361 arg_0)
 {
     if (sayıInt_0 != 0)
     {
         throw new ArgumentOutOfRangeException();
     }
     if (Class_420.dmethod_3216(this.prop_2, arg_0))
     {
         return;
     }
     if (base.prop_1 != null)
     {
         ((Class_423)base.prop_1).pmethod_3299(this);
     }
     base.xmethod_3211(0, arg_0);
     if (base.prop_1 != null)
     {
         ((Class_423)base.prop_1).lmethod_3298(this);
     }
 }
Beispiel #11
0
        // Token: 0x060011E8 RID: 4584 RVA: 0x000581CC File Offset: 0x000563CC
        internal void xmethod_3221(int sayıInt_0, object obje_0, bool bool_0)
        {
            if (this.cmethod_3204(obje_0))
            {
                IEnumerable enumerable = (IEnumerable)obje_0;
                int         num        = sayıInt_0;
                using (IEnumerator enumerator = enumerable.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        object obje_ = enumerator.Current;
                        this.xmethod_3221(num, obje_, bool_0);
                        num++;
                    }
                    return;
                }
            }
            Class_361 arg_ = Class_420.tmethod_3222(obje_0);

            this.kmethod_3207(sayıInt_0, arg_, bool_0);
        }
Beispiel #12
0
        // Token: 0x060011D6 RID: 4566 RVA: 0x00057B4C File Offset: 0x00055D4C
        internal IEnumerable <Class_361> gmethod_3203(bool bool_0)
        {
            if (bool_0)
            {
                yield return(this);
            }
            foreach (Class_361 class_ in this.prop_0)
            {
                yield return(class_);

                Class_420 class_2 = class_ as Class_420;
                if (class_2 != null)
                {
                    foreach (Class_361 class_3 in class_2.xmethod_3201())
                    {
                        yield return(class_3);
                    }
                }
            }
            yield break;
        }
Beispiel #13
0
        // Token: 0x06001253 RID: 4691 RVA: 0x0005924C File Offset: 0x0005744C
        internal virtual void kmethod_3297(object obje_0, Class_328 arg_0)
        {
            Class_423 class_ = obje_0 as Class_423;

            if (class_ == null)
            {
                return;
            }
            using (IEnumerator <KeyValuePair <string, Class_361> > enumerator = class_.smethod_3330())
            {
                while (enumerator.MoveNext())
                {
                    KeyValuePair <string, Class_361> keyValuePair = enumerator.Current;
                    Class_427 class_2 = this.gmethod_3303(keyValuePair.Key);
                    if (class_2 == null)
                    {
                        this.kmethod_3317(keyValuePair.Key, keyValuePair.Value);
                    }
                    else if (keyValuePair.Value != null)
                    {
                        Class_420 class_3 = class_2.prop_2 as Class_420;
                        if (class_3 == null)
                        {
                            if (keyValuePair.Value.prop_3 != Class_428.Null)
                            {
                                class_2.prop_2 = keyValuePair.Value;
                            }
                        }
                        else if (class_3.prop_3 != keyValuePair.Value.prop_3)
                        {
                            class_2.prop_2 = keyValuePair.Value;
                        }
                        else
                        {
                            class_3.lmethod_3228(keyValuePair.Value, arg_0);
                        }
                    }
                }
            }
        }
Beispiel #14
0
        // Token: 0x060011CF RID: 4559 RVA: 0x00057AA0 File Offset: 0x00055CA0
        internal bool dmethod_3196(Class_420 arg_0)
        {
            if (arg_0 == this)
            {
                return(true);
            }
            IList <Class_361> list  = this.prop_0;
            IList <Class_361> list2 = arg_0.prop_0;

            if (list.Count != list2.Count)
            {
                return(false);
            }
            for (int i = 0; i < list.Count; i++)
            {
                if (!list[i].lmethod_2448(list2[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
Beispiel #15
0
        // Token: 0x060011F1 RID: 4593 RVA: 0x00058320 File Offset: 0x00056520
        internal void smethod_3230(Class_285 arg_0)
        {
            Class_517.ArgumentNotNull(arg_0, "r");
            Class_353 arg_   = arg_0 as Class_353;
            Class_420 class_ = this;

            for (;;)
            {
                if (class_ is Class_427 && ((Class_427)class_).prop_2 != null)
                {
                    if (class_ == this)
                    {
                        break;
                    }
                    class_ = class_.prop_1;
                }
                switch (arg_0.prop_9)
                {
                case Class_508.None:
                    goto IL_22F;

                case Class_508.StartObject:
                {
                    Class_423 class_2 = new Class_423();
                    class_2.lmethod_2568(arg_);
                    class_.lmethod_3218(class_2);
                    class_ = class_2;
                    goto IL_22F;
                }

                case Class_508.StartArray:
                {
                    Class_424 class_3 = new Class_424();
                    class_3.lmethod_2568(arg_);
                    class_.lmethod_3218(class_3);
                    class_ = class_3;
                    goto IL_22F;
                }

                case Class_508.StartConstructor:
                {
                    Class_421 class_4 = new Class_421(arg_0.prop_10.ToString());
                    class_4.lmethod_2568(arg_);
                    class_.lmethod_3218(class_4);
                    class_ = class_4;
                    goto IL_22F;
                }

                case Class_508.PropertyName:
                {
                    string    str_    = arg_0.prop_10.ToString();
                    Class_427 class_5 = new Class_427(str_);
                    class_5.lmethod_2568(arg_);
                    Class_423 class_6 = (Class_423)class_;
                    Class_427 class_7 = class_6.gmethod_3303(str_);
                    if (class_7 == null)
                    {
                        class_.lmethod_3218(class_5);
                    }
                    else
                    {
                        class_7.gmethod_2473(class_5);
                    }
                    class_ = class_5;
                    goto IL_22F;
                }

                case Class_508.Comment:
                {
                    Class_362 class_8 = Class_362.vmethod_2595(arg_0.prop_10.ToString());
                    class_8.lmethod_2568(arg_);
                    class_.lmethod_3218(class_8);
                    goto IL_22F;
                }

                case Class_508.Integer:
                case Class_508.Float:
                case Class_508.String:
                case Class_508.Boolean:
                case Class_508.Date:
                case Class_508.Bytes:
                {
                    Class_362 class_8 = new Class_362(arg_0.prop_10);
                    class_8.lmethod_2568(arg_);
                    class_.lmethod_3218(class_8);
                    goto IL_22F;
                }

                case Class_508.Null:
                {
                    Class_362 class_8 = Class_362.kmethod_2597();
                    class_8.lmethod_2568(arg_);
                    class_.lmethod_3218(class_8);
                    goto IL_22F;
                }

                case Class_508.Undefined:
                {
                    Class_362 class_8 = Class_362.lmethod_2598();
                    class_8.lmethod_2568(arg_);
                    class_.lmethod_3218(class_8);
                    goto IL_22F;
                }

                case Class_508.EndObject:
                    if (class_ == this)
                    {
                        return;
                    }
                    class_ = class_.prop_1;
                    goto IL_22F;

                case Class_508.EndArray:
                    if (class_ == this)
                    {
                        return;
                    }
                    class_ = class_.prop_1;
                    goto IL_22F;

                case Class_508.EndConstructor:
                    if (class_ == this)
                    {
                        return;
                    }
                    class_ = class_.prop_1;
                    goto IL_22F;
                }
                goto Block_4;
IL_22F:
                if (!arg_0.vmethod_1885())
                {
                    return;
                }
            }
            return;

Block_4:
            throw new InvalidOperationException("The JsonReader should not be on a token of type {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_9));
        }
Beispiel #16
0
 // Token: 0x060012FE RID: 4862 RVA: 0x0005AA58 File Offset: 0x00058C58
 public Class_427(string str_0, object obje_0)
 {
     Class_517.ArgumentNotNull(str_0, "name");
     this.field_1 = str_0;
     this.prop_2  = (base.cmethod_3204(obje_0) ? new Class_424(obje_0) : Class_420.tmethod_3222(obje_0));
 }
Beispiel #17
0
 // Token: 0x060012C6 RID: 4806 RVA: 0x0005A43C File Offset: 0x0005863C
 public Class_426(Class_420 arg_0)
 {
     Class_517.ArgumentNotNull(arg_0, "container");
     this.field_0 = arg_0;
     this.field_1 = arg_0;
 }
Beispiel #18
0
        // Token: 0x0600121F RID: 4639 RVA: 0x0005878C File Offset: 0x0005698C
        internal static void dmethod_3276(Class_420 arg_0, IEnumerable arg_1, Class_328 arg_2)
        {
            switch (arg_2.prop_0)
            {
            case Class_342.Concat:
                using (IEnumerator enumerator = arg_1.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        object    obj   = enumerator.Current;
                        Class_361 obje_ = (Class_361)obj;
                        arg_0.lmethod_3218(obje_);
                    }
                    return;
                }
                break;

            case Class_342.Union:
                break;

            case Class_342.Replace:
                goto IL_C6;

            case Class_342.Merge:
                goto IL_115;

            default:
                goto IL_1D2;
            }
            HashSet <Class_361> hashSet = new HashSet <Class_361>(arg_0, Class_361.prop_0);

            using (IEnumerator enumerator2 = arg_1.GetEnumerator())
            {
                while (enumerator2.MoveNext())
                {
                    object    obj2   = enumerator2.Current;
                    Class_361 class_ = (Class_361)obj2;
                    if (hashSet.Add(class_))
                    {
                        arg_0.lmethod_3218(class_);
                    }
                }
                return;
            }
IL_C6:
            arg_0.tmethod_3212();
            using (IEnumerator enumerator3 = arg_1.GetEnumerator())
            {
                while (enumerator3.MoveNext())
                {
                    object    obj3   = enumerator3.Current;
                    Class_361 obje_2 = (Class_361)obj3;
                    arg_0.lmethod_3218(obje_2);
                }
                return;
            }
IL_115:
            int num = 0;

            using (IEnumerator enumerator4 = arg_1.GetEnumerator())
            {
                while (enumerator4.MoveNext())
                {
                    object obj4 = enumerator4.Current;
                    if (num < arg_0.prop_9)
                    {
                        Class_361 class_2 = arg_0.cmethod_2464(num);
                        Class_420 class_3 = class_2 as Class_420;
                        if (class_3 != null)
                        {
                            class_3.lmethod_3228(obj4, arg_2);
                        }
                        else if (obj4 != null)
                        {
                            Class_361 class_4 = Class_420.tmethod_3222(obj4);
                            if (class_4.prop_3 != Class_428.Null)
                            {
                                arg_0.vmethod_2465(num, class_4);
                            }
                        }
                    }
                    else
                    {
                        arg_0.lmethod_3218(obj4);
                    }
                    num++;
                }
                return;
            }
IL_1D2:
            throw new ArgumentOutOfRangeException("settings", "Unexpected merge array handling when merging JSON.");
        }