Exemplo n.º 1
0
        // Token: 0x06000C11 RID: 3089 RVA: 0x00043624 File Offset: 0x00041824
        private object tmethod_2172(Class_285 arg_0)
        {
            while (arg_0.prop_9 == Class_508.Comment)
            {
                if (!arg_0.vmethod_1885())
                {
                    throw Class_417.xmethod_3101(arg_0, "Unexpected end when reading ExpandoObject.");
                }
            }
            switch (arg_0.prop_9)
            {
            case Class_508.StartObject:
                return(this.cmethod_2174(arg_0));

            case Class_508.StartArray:
                return(this.gmethod_2173(arg_0));

            default:
                if (Class_486.IsPrimitiveToken(arg_0.prop_9))
                {
                    return(arg_0.prop_10);
                }
                throw Class_417.xmethod_3101(arg_0, "Unexpected token when converting ExpandoObject: {0}".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_9));
            }
        }
Exemplo n.º 2
0
 // Token: 0x06000AE3 RID: 2787 RVA: 0x0003F314 File Offset: 0x0003D514
 internal string kmethod_1897()
 {
     this.field_4 = Class_408.ReadAsString;
     while (this.tmethod_1892())
     {
         Class_508 class_ = this.prop_9;
         if (class_ != Class_508.Comment)
         {
             if (class_ == Class_508.String)
             {
                 return((string)this.prop_10);
             }
             if (class_ == Class_508.Null)
             {
                 return(null);
             }
             if (Class_486.IsPrimitiveToken(class_) && this.prop_10 != null)
             {
                 string text;
                 if (this.prop_10 is IFormattable)
                 {
                     text = ((IFormattable)this.prop_10).ToString(null, this.prop_14);
                 }
                 else
                 {
                     text = this.prop_10.ToString();
                 }
                 this.gmethod_1903(Class_508.String, text, false);
                 return(text);
             }
             if (class_ == Class_508.EndArray)
             {
                 return(null);
             }
             throw Class_414.lmethod_3098(this, "Error reading string. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, class_));
         }
     }
     this.xmethod_1901(Class_508.None);
     return(null);
 }