ToString() public method

public ToString ( ) : string
return string
        public String ToQueryString()
        {
            string underscoredParent = Parent.Replace("-", "_");

            QueryString qs = new QueryString();
            foreach (KeyValuePair<string, string> pair in TopLevelElements)
            {
                qs.Append(pair);
            }
            foreach (KeyValuePair<string, object> pair in Elements)
            {
                qs.Append(ParentBracketChildString(underscoredParent, pair.Key.Replace("-", "_")), pair.Value);
            }

            return qs.ToString();
        }
        public string ToQueryString()
        {
            string underscoredParent = Parent.Replace("-", "_");

            var qs = new QueryString();

            foreach (var pair in topLevelElements)
            {
                qs.Append(pair);
            }
            foreach (var pair in elements)
            {
                qs.Append(ParentBracketChildString(underscoredParent, pair.Key.Replace("-", "_")), pair.Value);
            }

            return(qs.ToString());
        }
示例#3
0
        public String ToQueryString()
        {
            string underscoredParent = Parent.Replace("-", "_");

            QueryString qs = new QueryString();

            foreach (KeyValuePair <string, string> pair in TopLevelElements)
            {
                qs.Append(pair);
            }
            foreach (KeyValuePair <string, object> pair in Elements)
            {
                qs.Append(ParentBracketChildString(underscoredParent, pair.Key.Replace("-", "_")), pair.Value);
            }

            return(qs.ToString());
        }
        public string ToQueryString()
        {
            string underscoredParent = Parent.Replace("-", "_");

            var qs = new QueryString();
            foreach (var pair in topLevelElements)
            {
                qs.Append(pair);
            }
            foreach (var pair in elements)
            {
                qs.Append(ParentBracketChildString(underscoredParent, pair.Key.Replace("-", "_")), pair.Value);
            }

            return qs.ToString();

        }