EncodeString() private static method

private static EncodeString ( string str ) : string
str string
return string
        public override string ToString()
        {
            string str1 = "{";
            string str2 = string.Empty;

            using (Dictionary <string, JSONValue> .Enumerator enumerator = this.dict.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    KeyValuePair <string, JSONValue> current = enumerator.Current;
                    str1 = str1 + str2 + (object)'"' + AssetStoreResponse.EncodeString(current.Key) + "\" : " + current.Value.ToString();
                    str2 = ", ";
                }
            }
            return(str1 + "}");
        }
示例#2
0
        public override string ToString()
        {
            string text  = "{";
            string text2 = "";

            foreach (KeyValuePair <string, JSONValue> current in this.dict)
            {
                string text3 = text;
                text = string.Concat(new object[]
                {
                    text3,
                    text2,
                    '"',
                    AssetStoreResponse.EncodeString(current.Key),
                    "\" : ",
                    current.Value.ToString()
                });
                text2 = ", ";
            }
            return(text + "}");
        }