// 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)); } }
// Token: 0x06000AE6 RID: 2790 RVA: 0x0003F630 File Offset: 0x0003D830 public void smethod_1900() { if (this.prop_9 == Class_508.PropertyName) { this.vmethod_1885(); } if (Class_486.IsStartToken(this.prop_9)) { int num = this.prop_12; while (this.vmethod_1885() && num < this.prop_12) { } } }
// 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); }
// Token: 0x06000F48 RID: 3912 RVA: 0x0004EC40 File Offset: 0x0004CE40 private void cmethod_2774(IList <Class_431> arg_0) { foreach (Class_381.NClass_0 nclass_ in this.field_1) { bool flag = nclass_.nprop_7 == Class_428.Array && nclass_.nprop_2 && nclass_.nprop_1 > 0; if (!flag) { if (Class_381.field_7 == null) { Class_381.field_7 = new Func <Class_431, bool>(Class_381.gmethod_2793); } if (!arg_0.Any(Class_381.field_7)) { continue; } } if (nclass_.nprop_4 == null) { if (Class_486.IsEndToken(this.field_0.prop_9)) { continue; } nclass_.nprop_4 = new Class_426(); } nclass_.nprop_4.kmethod_2017(this.field_0, false); if (nclass_.nprop_4.prop_1 == 0 && this.field_0.prop_9 != Class_508.PropertyName) { Class_361 class_ = nclass_.nprop_4.prop_1; nclass_.nprop_4 = null; if (flag) { if (nclass_.nprop_3.Contains(class_, Class_361.prop_0)) { string str_ = "Non-unique array item at index {0}.".FormatWith(CultureInfo.InvariantCulture, nclass_.nprop_1 - 1); IEnumerable <Class_431> source = nclass_.nprop_5; if (Class_381.field_8 == null) { Class_381.field_8 = new Func <Class_431, bool>(Class_381.cmethod_2794); } this.pmethod_2759(str_, source.First(Class_381.field_8)); } nclass_.nprop_3.Add(class_); } else { if (Class_381.field_9 == null) { Class_381.field_9 = new Func <Class_431, bool>(Class_381.vmethod_2795); } if (arg_0.Any(Class_381.field_9)) { foreach (Class_431 class_2 in arg_0) { if (class_2.prop_21 != null && !class_2.prop_21.ContainsValue(class_, Class_361.prop_0)) { StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture); class_.cmethod_2474(new Class_412(stringWriter), new Class_299[0]); this.pmethod_2759("Value {0} is not defined in enum.".FormatWith(CultureInfo.InvariantCulture, stringWriter.ToString()), class_2); } } } } } } }
// Token: 0x06000F47 RID: 3911 RVA: 0x0004E7D0 File Offset: 0x0004C9D0 private void gmethod_2773() { if (this.field_3 == null) { Class_432 class_ = new Class_432(); this.field_3 = class_.tmethod_3502(this.field_2); if (!Class_486.IsStartToken(this.field_0.prop_9)) { this.vmethod_2755(new Class_381.NClass_0(Class_428.None, this.prop_7)); } } switch (this.field_0.prop_9) { case Class_508.None: return; case Class_508.StartObject: { this.xmethod_2781(); IList <Class_431> arg_ = this.prop_7.Where(new Func <Class_431, bool>(this.lmethod_2788)).ToList <Class_431>(); this.vmethod_2755(new Class_381.NClass_0(Class_428.Object, arg_)); this.cmethod_2774(this.prop_6); return; } case Class_508.StartArray: { this.xmethod_2781(); IList <Class_431> arg_2 = this.prop_7.Where(new Func <Class_431, bool>(this.kmethod_2787)).ToList <Class_431>(); this.vmethod_2755(new Class_381.NClass_0(Class_428.Array, arg_2)); this.cmethod_2774(this.prop_6); return; } case Class_508.StartConstructor: this.xmethod_2781(); this.vmethod_2755(new Class_381.NClass_0(Class_428.Constructor, null)); this.cmethod_2774(this.prop_6); return; case Class_508.PropertyName: this.cmethod_2774(this.prop_6); using (IEnumerator <Class_431> enumerator = this.prop_6.GetEnumerator()) { while (enumerator.MoveNext()) { Class_431 arg_3 = enumerator.Current; this.vmethod_2785(arg_3); } return; } break; case Class_508.Comment: goto IL_3F9; case Class_508.Raw: break; case Class_508.Integer: this.xmethod_2781(); this.cmethod_2774(this.prop_7); using (IEnumerator <Class_431> enumerator2 = this.prop_7.GetEnumerator()) { while (enumerator2.MoveNext()) { Class_431 arg_4 = enumerator2.Current; this.smethod_2780(arg_4); } return; } goto IL_1E8; case Class_508.Float: goto IL_1E8; case Class_508.String: goto IL_23A; case Class_508.Boolean: goto IL_28C; case Class_508.Null: goto IL_2DE; case Class_508.Undefined: case Class_508.Date: case Class_508.Bytes: this.cmethod_2774(this.prop_7); return; case Class_508.EndObject: goto IL_330; case Class_508.EndArray: this.cmethod_2774(this.prop_6); foreach (Class_431 arg_5 in this.prop_6) { this.dmethod_2776(arg_5); } this.dmethod_2756(); return; case Class_508.EndConstructor: this.cmethod_2774(this.prop_6); this.dmethod_2756(); return; default: goto IL_3F9; } this.xmethod_2781(); return; IL_1E8: this.xmethod_2781(); this.cmethod_2774(this.prop_7); using (IEnumerator <Class_431> enumerator4 = this.prop_7.GetEnumerator()) { while (enumerator4.MoveNext()) { Class_431 arg_6 = enumerator4.Current; this.tmethod_2782(arg_6); } return; } IL_23A: this.xmethod_2781(); this.cmethod_2774(this.prop_7); using (IEnumerator <Class_431> enumerator5 = this.prop_7.GetEnumerator()) { while (enumerator5.MoveNext()) { Class_431 arg_7 = enumerator5.Current; this.pmethod_2779(arg_7); } return; } IL_28C: this.xmethod_2781(); this.cmethod_2774(this.prop_7); using (IEnumerator <Class_431> enumerator6 = this.prop_7.GetEnumerator()) { while (enumerator6.MoveNext()) { Class_431 arg_8 = enumerator6.Current; this.lmethod_2778(arg_8); } return; } IL_2DE: this.xmethod_2781(); this.cmethod_2774(this.prop_7); using (IEnumerator <Class_431> enumerator7 = this.prop_7.GetEnumerator()) { while (enumerator7.MoveNext()) { Class_431 arg_9 = enumerator7.Current; this.kmethod_2777(arg_9); } return; } IL_330: this.cmethod_2774(this.prop_6); foreach (Class_431 arg_10 in this.prop_6) { this.vmethod_2775(arg_10); } this.dmethod_2756(); return; IL_3F9: throw new ArgumentOutOfRangeException(); }