Beispiel #1
0
        // Token: 0x0600129A RID: 4762 RVA: 0x00059D34 File Offset: 0x00057F34
        public static Class_424 tmethod_3352(string str_0)
        {
            Class_424 result;

            using (Class_285 class_ = new Class_409(new StringReader(str_0)))
            {
                Class_424 class_2 = Class_424.xmethod_3351(class_);
                if (class_.vmethod_1885() && class_.prop_9 != Class_508.Comment)
                {
                    throw Class_414.lmethod_3098(class_, "Additional text found in JSON string after parsing content.");
                }
                result = class_2;
            }
            return(result);
        }
Beispiel #2
0
        // Token: 0x06001299 RID: 4761 RVA: 0x00059CAC File Offset: 0x00057EAC
        public static Class_424 xmethod_3351(Class_285 arg_0)
        {
            if (arg_0.prop_9 == Class_508.None && !arg_0.vmethod_1885())
            {
                throw Class_414.lmethod_3098(arg_0, "Error reading JArray from JsonReader.");
            }
            while (arg_0.prop_9 == Class_508.Comment)
            {
                arg_0.vmethod_1885();
            }
            if (arg_0.prop_9 != Class_508.StartArray)
            {
                throw Class_414.lmethod_3098(arg_0, "Error reading JArray from JsonReader. Current JsonReader item is not an array: {0}".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_9));
            }
            Class_424 class_ = new Class_424();

            class_.lmethod_2568(arg_0 as Class_353);
            class_.pmethod_3229(arg_0);
            return(class_);
        }
Beispiel #3
0
        // Token: 0x06001297 RID: 4759 RVA: 0x00059C80 File Offset: 0x00057E80
        internal virtual bool pmethod_3349(Class_361 arg_0)
        {
            Class_424 class_ = arg_0 as Class_424;

            return(class_ != null && base.dmethod_3196(class_));
        }
Beispiel #4
0
 // Token: 0x06001294 RID: 4756 RVA: 0x00059C49 File Offset: 0x00057E49
 public Class_424(Class_424 arg_0) : base(arg_0)
 {
 }
Beispiel #5
0
 // Token: 0x0600129B RID: 4763 RVA: 0x00059D9C File Offset: 0x00057F9C
 public static Class_424 gmethod_3353(object obje_0)
 {
     return(Class_424.cmethod_3354(obje_0, Class_418.xmethod_3161()));
 }
Beispiel #6
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));
        }