// Token: 0x06000C08 RID: 3080 RVA: 0x00043390 File Offset: 0x00041590 public virtual void cmethod_2164(Class_296 arg_0, object obje_0, Class_418 arg_1) { Class_306.lmethod_2168(obje_0.GetType()); Class_441 class_ = arg_1.prop_14 as Class_441; string str_ = (string)Class_306.field_4.tmethod_4062(obje_0, "Key"); object obj = Class_306.field_4.tmethod_4062(obje_0, "Value"); Type type = (obj != null) ? obj.GetType() : null; arg_0.kmethod_2007(); arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Key") : "Key"); arg_0.kmethod_2037(str_); arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Type") : "Type"); arg_0.kmethod_2037((type != null) ? type.FullName : null); arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Value") : "Value"); if (type != null) { string str_2; if (Class_467.gmethod_3913(obj, type, out str_2)) { arg_0.kmethod_2037(str_2); } else { arg_0.cmethod_2074(obj); } } else { arg_0.gmethod_2033(); } arg_0.lmethod_2008(); }
// Token: 0x06000BE8 RID: 3048 RVA: 0x000425A0 File Offset: 0x000407A0 public virtual void lmethod_2138(Class_296 arg_0, object obje_0, Class_418 arg_1) { if (obje_0 == null) { arg_0.gmethod_2033(); return; } byte[] byteDizi_ = this.pmethod_2139(obje_0); arg_0.tmethod_2072(byteDizi_); }
// Token: 0x060012FF RID: 4863 RVA: 0x0005AAAC File Offset: 0x00058CAC public virtual void vmethod_3445(Class_296 arg_0, params Class_299[] arg_1) { arg_0.gmethod_2013(this.field_1); Class_361 class_ = this.prop_2; if (class_ != null) { class_.cmethod_2474(arg_0, arg_1); return; } arg_0.gmethod_2033(); }
// Token: 0x06001564 RID: 5476 RVA: 0x00066C17 File Offset: 0x00064E17 private void dmethod_3936(Class_296 arg_0, int sayıInt_0) { base.pmethod_3849(); if (arg_0.prop_2 == Class_518.Property) { arg_0.gmethod_2033(); } while (arg_0.prop_1 > sayıInt_0) { arg_0.vmethod_2015(); } }
// Token: 0x06000C33 RID: 3123 RVA: 0x0004406F File Offset: 0x0004226F public virtual void smethod_2200(Class_296 arg_0, object obje_0, Class_418 arg_1) { if (obje_0 == null) { arg_0.gmethod_2033(); return; } if (obje_0 is Version) { arg_0.kmethod_2037(obje_0.ToString()); return; } throw new Class_417("Expected Version object value"); }
// Token: 0x06000C30 RID: 3120 RVA: 0x00043EAC File Offset: 0x000420AC public virtual void kmethod_2197(Class_296 arg_0, object obje_0, Class_418 arg_1) { if (obje_0 == null) { arg_0.gmethod_2033(); return; } Enum @enum = (Enum)obje_0; string text = @enum.ToString("G"); if (char.IsNumber(text[0]) || text[0] == '-') { arg_0.cmethod_2074(obje_0); return; } Type type = @enum.GetType(); string str_ = Class_505.ToEnumName(type, text, this.prop_0); arg_0.kmethod_2037(str_); }
// Token: 0x06001030 RID: 4144 RVA: 0x00050F3C File Offset: 0x0004F13C private void kmethod_2967(Class_296 arg_0, Class_387 arg_1, XmlNamespaceManager arg_2, bool bool_0) { Func <Class_387, bool> func = null; Class_407.NClass_0 nclass_ = new Class_407.NClass_0(); nclass_.field_1 = arg_1; switch (nclass_.field_1.prop_0) { case XmlNodeType.Element: if (this.vmethod_2965(nclass_.field_1)) { IEnumerable <Class_387> source = nclass_.field_1.prop_2; if (func == null) { func = new Func <Class_387, bool>(nclass_.nmethod_1); } if (source.All(func) && nclass_.field_1.prop_2.Count > 0) { this.dmethod_2966(arg_0, nclass_.field_1, arg_2, false); return; } } arg_2.PushScope(); foreach (Class_387 class_ in nclass_.field_1.prop_3) { if (class_.prop_6 == "http://www.w3.org/2000/xmlns/") { string prefix = (class_.prop_1 != "xmlns") ? class_.prop_1 : string.Empty; string uri = class_.prop_5; arg_2.AddNamespace(prefix, uri); } } if (bool_0) { arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2)); } if (!this.smethod_2980(nclass_.field_1.prop_3).Any <Class_387>() && nclass_.field_1.prop_2.Count == 1 && nclass_.field_1.prop_2[0].prop_0 == XmlNodeType.Text) { arg_0.kmethod_2037(nclass_.field_1.prop_2[0].prop_5); } else if (nclass_.field_1.prop_2.Count == 0 && Class_510.IsNullOrEmpty <Class_387>(nclass_.field_1.prop_3)) { Class_391 class_2 = (Class_391)nclass_.field_1; if (class_2.prop_0) { arg_0.gmethod_2033(); } else { arg_0.kmethod_2037(string.Empty); } } else { arg_0.kmethod_2007(); for (int i = 0; i < nclass_.field_1.prop_3.Count; i++) { this.kmethod_2967(arg_0, nclass_.field_1.prop_3[i], arg_2, true); } this.dmethod_2966(arg_0, nclass_.field_1, arg_2, true); arg_0.lmethod_2008(); } arg_2.PopScope(); return; case XmlNodeType.Attribute: case XmlNodeType.Text: case XmlNodeType.CDATA: case XmlNodeType.ProcessingInstruction: case XmlNodeType.Whitespace: case XmlNodeType.SignificantWhitespace: if (nclass_.field_1.prop_6 == "http://www.w3.org/2000/xmlns/" && nclass_.field_1.prop_5 == "http://james.newtonking.com/projects/json") { return; } if (nclass_.field_1.prop_6 == "http://james.newtonking.com/projects/json" && nclass_.field_1.prop_1 == "Array") { return; } if (bool_0) { arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2)); } arg_0.kmethod_2037(nclass_.field_1.prop_5); return; case XmlNodeType.Comment: if (bool_0) { arg_0.vmethod_2075(nclass_.field_1.prop_5); return; } return; case XmlNodeType.Document: case XmlNodeType.DocumentFragment: this.dmethod_2966(arg_0, nclass_.field_1, arg_2, bool_0); return; case XmlNodeType.DocumentType: { Class_395 class_3 = (Class_395)nclass_.field_1; arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2)); arg_0.kmethod_2007(); if (!string.IsNullOrEmpty(class_3.prop_0)) { arg_0.gmethod_2013("@name"); arg_0.kmethod_2037(class_3.prop_0); } if (!string.IsNullOrEmpty(class_3.prop_2)) { arg_0.gmethod_2013("@public"); arg_0.kmethod_2037(class_3.prop_2); } if (!string.IsNullOrEmpty(class_3.prop_1)) { arg_0.gmethod_2013("@system"); arg_0.kmethod_2037(class_3.prop_1); } if (!string.IsNullOrEmpty(class_3.prop_3)) { arg_0.gmethod_2013("@internalSubset"); arg_0.kmethod_2037(class_3.prop_3); } arg_0.lmethod_2008(); return; } case XmlNodeType.XmlDeclaration: { Class_393 class_4 = (Class_393)nclass_.field_1; arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2)); arg_0.kmethod_2007(); if (!string.IsNullOrEmpty(class_4.prop_0)) { arg_0.gmethod_2013("@version"); arg_0.kmethod_2037(class_4.prop_0); } if (!string.IsNullOrEmpty(class_4.prop_1)) { arg_0.gmethod_2013("@encoding"); arg_0.kmethod_2037(class_4.prop_1); } if (!string.IsNullOrEmpty(class_4.prop_2)) { arg_0.gmethod_2013("@standalone"); arg_0.kmethod_2037(class_4.prop_2); } arg_0.lmethod_2008(); return; } } throw new Class_417("Unexpected XmlNodeType when serializing nodes: " + nclass_.field_1.prop_0); }
// Token: 0x06001546 RID: 5446 RVA: 0x0006521C File Offset: 0x0006341C private void dmethod_3906(Class_296 arg_0, object obje_0, Class_349 arg_1, Class_454 arg_2, Class_350 arg_3, Class_454 arg_4) { if (obje_0 == null) { arg_0.gmethod_2033(); return; } Class_299 class_; if ((class_ = ((arg_2 != null) ? arg_2.prop_8 : null)) == null && (class_ = ((arg_4 != null) ? arg_4.prop_25 : null)) == null && (class_ = ((arg_3 != null) ? arg_3.prop_2 : null)) == null && (class_ = arg_1.prop_3) == null) { class_ = (this.field_3.smethod_3180(arg_1.prop_0) ?? arg_1.prop_4); } Class_299 class_2 = class_; if (class_2 != null && class_2.prop_1) { this.vmethod_3925(arg_0, class_2, obje_0, arg_1, arg_3, arg_4); return; } switch (arg_1.field_5) { case Class_448.Object: this.kmethod_3917(arg_0, obje_0, (Class_464)arg_1, arg_2, arg_3, arg_4); return; case Class_448.Array: { Class_447 class_3 = (Class_447)arg_1; if (!class_3.prop_1) { this.dmethod_3926(arg_0, (IEnumerable)obje_0, class_3, arg_2, arg_3, arg_4); return; } this.kmethod_3927(arg_0, (Array)obje_0, class_3, arg_2, arg_3, arg_4); return; } case Class_448.Primitive: this.vmethod_3905(arg_0, obje_0, (Class_369)arg_1, arg_2, arg_3, arg_4); return; case Class_448.String: this.cmethod_3914(arg_0, obje_0, (Class_469)arg_1); return; case Class_448.Dictionary: { Class_453 class_4 = (Class_453)arg_1; this.cmethod_3934(arg_0, (obje_0 is IDictionary) ? ((IDictionary)obje_0) : class_4.pmethod_3639(obje_0), class_4, arg_2, arg_3, arg_4); return; } case Class_448.Dynamic: this.xmethod_3931(arg_0, (IDynamicMetaObjectProvider)obje_0, (Class_365)arg_1, arg_2, arg_3, arg_4); return; case Class_448.Serializable: this.smethod_3930(arg_0, (ISerializable)obje_0, (Class_367)arg_1, arg_2, arg_3, arg_4); return; case Class_448.Linq: ((Class_361)obje_0).cmethod_2474(arg_0, this.field_3.prop_13.ToArray <Class_299>()); return; default: return; } }
// Token: 0x06000E7C RID: 3708 RVA: 0x0004CCD0 File Offset: 0x0004AED0 public virtual void cmethod_2604(Class_296 arg_0, params Class_299[] arg_1) { if (arg_1 != null && arg_1.Length > 0 && this.field_1 != null) { Class_299 class_ = Class_418.xmethod_3181(arg_1, this.field_1.GetType()); if (class_ != null && class_.prop_1) { class_.tmethod_2132(arg_0, this.field_1, Class_418.xmethod_3161()); return; } } switch (this.field_0) { case Class_428.Comment: arg_0.vmethod_2075((this.field_1 != null) ? this.field_1.ToString() : null); return; case Class_428.Integer: if (this.field_1 is BigInteger) { arg_0.cmethod_2074((BigInteger)this.field_1); return; } arg_0.smethod_2040(Convert.ToInt64(this.field_1, CultureInfo.InvariantCulture)); return; case Class_428.Float: if (this.field_1 is decimal) { arg_0.smethod_2050((decimal)this.field_1); return; } if (this.field_1 is double) { arg_0.gmethod_2043((double)this.field_1); return; } if (this.field_1 is float) { arg_0.tmethod_2042((float)this.field_1); return; } arg_0.gmethod_2043(Convert.ToDouble(this.field_1, CultureInfo.InvariantCulture)); return; case Class_428.String: arg_0.kmethod_2037((this.field_1 != null) ? this.field_1.ToString() : null); return; case Class_428.Boolean: arg_0.cmethod_2044(Convert.ToBoolean(this.field_1, CultureInfo.InvariantCulture)); return; case Class_428.Null: arg_0.gmethod_2033(); return; case Class_428.Undefined: arg_0.cmethod_2034(); return; case Class_428.Date: if (this.field_1 is DateTimeOffset) { arg_0.tmethod_2052((DateTimeOffset)this.field_1); return; } arg_0.xmethod_2051(Convert.ToDateTime(this.field_1, CultureInfo.InvariantCulture)); return; case Class_428.Raw: arg_0.dmethod_2036((this.field_1 != null) ? this.field_1.ToString() : null); return; case Class_428.Bytes: arg_0.tmethod_2072((byte[])this.field_1); return; case Class_428.Guid: case Class_428.Uri: case Class_428.TimeSpan: arg_0.kmethod_2037((this.field_1 != null) ? this.field_1.ToString() : null); return; default: throw Class_513.CreateArgumentOutOfRangeException("TokenType", this.field_0, "Unexpected token type."); } }