예제 #1
0
 // Token: 0x06000C58 RID: 3160 RVA: 0x000442F1 File Offset: 0x000424F1
 public Class_326(Class_325 type)
 {
     this.Type         = type;
     this.HasIndex     = Class_326.TypeHasIndex(type);
     this.Position     = -1;
     this.PropertyName = null;
 }
예제 #2
0
        // Token: 0x06000AED RID: 2797 RVA: 0x0003F814 File Offset: 0x0003DA14
        protected void kmethod_1907()
        {
            Class_325 class_ = this.cmethod_1884();

            switch (class_)
            {
            case Class_325.None:
                this.lmethod_1908();
                return;

            case Class_325.Object:
                this.field_3 = Class_285.NClass_0.field_9;
                return;

            case Class_325.Array:
                this.field_3 = Class_285.NClass_0.field_11;
                return;

            case Class_325.Constructor:
                this.field_3 = Class_285.NClass_0.field_15;
                return;

            default:
                throw Class_414.lmethod_3098(this, "While setting the reader state back to current object an unexpected JsonType was encountered: {0}".FormatWith(CultureInfo.InvariantCulture, class_));
            }
        }
예제 #3
0
        // Token: 0x06000AEC RID: 2796 RVA: 0x0003F7B8 File Offset: 0x0003D9B8
        private void dmethod_1906(Class_508 arg_0)
        {
            Class_325 class_ = this.gmethod_1883();

            if (this.pmethod_1909(arg_0) != class_)
            {
                throw Class_414.lmethod_3098(this, "JsonToken {0} is not valid for closing JsonType {1}.".FormatWith(CultureInfo.InvariantCulture, arg_0, class_));
            }
            if (this.cmethod_1884() != Class_325.None)
            {
                this.field_3 = Class_285.NClass_0.field_13;
                return;
            }
            this.lmethod_1908();
        }
예제 #4
0
 // Token: 0x06000AD4 RID: 2772 RVA: 0x0003EBA0 File Offset: 0x0003CDA0
 private void tmethod_1882(Class_325 arg_0)
 {
     this.vmethod_1905();
     if (this.field_5.Type == Class_325.None)
     {
         this.field_5 = new Class_326(arg_0);
         return;
     }
     this.field_13.Add(this.field_5);
     this.field_5 = new Class_326(arg_0);
     if (this.field_8 != null && this.prop_12 + 1 > this.field_8 && !this.field_9)
     {
         this.field_9 = true;
         throw Class_414.lmethod_3098(this, "The reader's MaxDepth of {0} has been exceeded.".FormatWith(CultureInfo.InvariantCulture, this.field_8));
     }
 }
예제 #5
0
 // Token: 0x06000C5A RID: 3162 RVA: 0x000443B3 File Offset: 0x000425B3
 internal static bool TypeHasIndex(Class_325 type)
 {
     return(type == Class_325.Array || type == Class_325.Constructor);
 }