Append() public method

public Append ( string>.KeyValuePair pair ) : QueryString
pair string>.KeyValuePair
return QueryString
Exemplo n.º 1
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();
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 4
0
        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();

        }