public override string ToString(string aPrefix) { string text = "{ "; using (Dictionary <string, JSONNode> .Enumerator enumerator = this.m_Dict.GetEnumerator()) { while (enumerator.MoveNext()) { KeyValuePair <string, JSONNode> current = enumerator.get_Current(); if (text.get_Length() > 3) { text += ", "; } text = text + "\n" + aPrefix + " "; string text2 = text; text = string.Concat(new string[] { text2, "\"", JSONNode.Escape(current.get_Key()), "\" : ", current.get_Value().ToString(aPrefix + " ") }); } } text = text + "\n" + aPrefix + "}"; return(text); }
public override string ToString() { string text = "{"; foreach (KeyValuePair <string, JSONNode> item in m_Dict) { if (text.Length > 2) { text += ", "; } string text2 = text; text = text2 + "\"" + JSONNode.Escape(item.Key) + "\":" + item.Value.ToString(); } return(text + "}"); }
public override string ToString() { string str = "{"; foreach (KeyValuePair <string, JSONNode> mDict in this.m_Dict) { if (str.Length > 2) { str = string.Concat(str, ", "); } string str1 = str; str = string.Concat(new string[] { str1, "\"", JSONNode.Escape(mDict.Key), "\":", mDict.Value.ToString() }); } str = string.Concat(str, "}"); return(str); }
// Token: 0x060002D1 RID: 721 RVA: 0x0000C0AC File Offset: 0x0000A2AC internal override void WriteToStringBuilder(StringBuilder aSB, int aIndent, int aIndentInc, JSONTextMode aMode) { aSB.Append('{'); bool flag = true; if (this.inline) { aMode = JSONTextMode.Compact; } foreach (KeyValuePair <string, JSONNode> keyValuePair in this.m_Dict) { if (!flag) { aSB.Append(','); } flag = false; if (aMode == JSONTextMode.Indent) { aSB.AppendLine(); } if (aMode == JSONTextMode.Indent) { aSB.Append(' ', aIndent + aIndentInc); } aSB.Append('"').Append(JSONNode.Escape(keyValuePair.Key)).Append('"'); if (aMode == JSONTextMode.Compact) { aSB.Append(':'); } else { aSB.Append(" : "); } keyValuePair.Value.WriteToStringBuilder(aSB, aIndent + aIndentInc, aIndentInc, aMode); } if (aMode == JSONTextMode.Indent) { aSB.AppendLine().Append(' ', aIndent); } aSB.Append('}'); }
public override String ToString() { String text = "{"; foreach (KeyValuePair <String, JSONNode> keyValuePair in this.m_Dict) { if (text.Length > 2) { text += ", "; } String text2 = text; text = String.Concat(new String[] { text2, "\"", JSONNode.Escape(keyValuePair.Key), "\":", keyValuePair.Value.ToString() }); } text += "}"; return(text); }
public override string ToString(string aPrefix) { string text = "{ "; foreach (KeyValuePair <string, JSONNode> keyValuePair in this.m_Dict) { if (text.Length > 3) { text += ", "; } text = text + "\n" + aPrefix + " "; string text2 = text; text = string.Concat(new string[] { text2, "\"", JSONNode.Escape(keyValuePair.Key), "\" : ", keyValuePair.Value.ToString(aPrefix + " ") }); } text = text + "\n" + aPrefix + "}"; return(text); }
public override String ToString(String aPrefix) { return("\"" + JSONNode.Escape(this.m_Data) + "\""); }
public override string ToString() { return("\"" + JSONNode.Escape(this.m_Data) + "\""); }
public override string ToString(string aPrefix) { return("\"" + JSONNode.Escape(m_Data) + "\""); }
internal override void WriteToStringBuilder(StringBuilder aSB, int aIndent, int aIndentInc, JSONTextMode aMode) { aSB.Append('"').Append(JSONNode.Escape(m_Data)).Append('"'); }
public override string ToString(string aPrefix) { return(string.Concat("\"", JSONNode.Escape(this.m_Data), "\"")); }