Ejemplo n.º 1
0
        // Token: 0x06001260 RID: 4704 RVA: 0x000595C0 File Offset: 0x000577C0
        public static Class_423 smethod_3310(string str_0)
        {
            Class_423 result;

            using (Class_285 class_ = new Class_409(new StringReader(str_0)))
            {
                Class_423 class_2 = Class_423.pmethod_3309(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);
        }
Ejemplo n.º 2
0
        // Token: 0x0600125F RID: 4703 RVA: 0x0005952C File Offset: 0x0005772C
        public static Class_423 pmethod_3309(Class_285 arg_0)
        {
            Class_517.ArgumentNotNull(arg_0, "reader");
            if (arg_0.prop_9 == Class_508.None && !arg_0.vmethod_1885())
            {
                throw Class_414.lmethod_3098(arg_0, "Error reading JObject from JsonReader.");
            }
            while (arg_0.prop_9 == Class_508.Comment)
            {
                arg_0.vmethod_1885();
            }
            if (arg_0.prop_9 != Class_508.StartObject)
            {
                throw Class_414.lmethod_3098(arg_0, "Error reading JObject from JsonReader. Current JsonReader item is not an object: {0}".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_9));
            }
            Class_423 class_ = new Class_423();

            class_.lmethod_2568(arg_0 as Class_353);
            class_.pmethod_3229(arg_0);
            return(class_);
        }
Ejemplo n.º 3
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);
                        }
                    }
                }
            }
        }
Ejemplo n.º 4
0
 // Token: 0x0600124D RID: 4685 RVA: 0x0005911C File Offset: 0x0005731C
 public Class_423(Class_423 arg_0) : base(arg_0)
 {
 }
Ejemplo n.º 5
0
 // Token: 0x06001261 RID: 4705 RVA: 0x00059628 File Offset: 0x00057828
 public static Class_423 xmethod_3311(object obje_0)
 {
     return(Class_423.tmethod_3312(obje_0, Class_418.xmethod_3161()));
 }
Ejemplo n.º 6
0
        // Token: 0x06001250 RID: 4688 RVA: 0x00059154 File Offset: 0x00057354
        internal virtual bool cmethod_3294(Class_361 arg_0)
        {
            Class_423 class_ = arg_0 as Class_423;

            return(class_ != null && this.field_0.tmethod_2242(class_.field_0));
        }
Ejemplo n.º 7
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));
        }