EncodeString() 개인적인 정적인 메소드

private static EncodeString ( string str ) : string
str string
리턴 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 + "}");
        }