public void AddTest() { var query = new UriQueryValues(); query.Add("name", "张三"); query.Add("id", "1121212"); query.Add("desc", "feeggrgr"); query.Add("list", new string[] { "a", "A" }); query.Add("NAME", "wangwu"); var query2 = new UriQueryValues(); query2.Add("wd", "aafefefe"); query2.Add("token", "kjdiejjkl"); query2.Add(query); query.Add(query2); var uri = query.ToString(); }
public void Test() { var query = new UriQueryValues(); query.Add("name", "张三"); query.Add("id", "1121212"); query.Add("desc", "feeggrgr"); query.Add("list", new string[] { "a", "A" }); query.Add("NAME", "wangwu"); var uri1 = query.ToString(); var query2 = new UriQueryValues(); query2.Add("wd", "aafefefe"); query2.Add("token", "kjdiejjkl"); query2.Add(query); var uri2 = query2.ToString(); var uri = "http://www.host.com/api/v2?" + uri2; var uriQuery = UriQueryValues.FromUri(uri); }