📜  c# .net stringify 数据查询 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:07.292000             🧑  作者: Mango

代码示例1
NameValueCollection queryString = System.Web.HttpUtility.ParseQueryString(string.Empty);

queryString.Add("key1", "value1");
queryString.Add("key2", "value2");

return queryString.ToString(); // Returns "key1=value1&key2=value2", all URL-encoded