Пример #1
0
        public void TestMethod1()
        {
            NameValueCollection nvc = new NameValueCollection();

            nvc["id"]   = "23";
            nvc["name"] = "jiegege";
            nvc["age"]  = "6";
            Console.WriteLine(MVCHelper.UpdateQueryString(nvc, "name", "hedajie"));
            Console.WriteLine(MVCHelper.DeleteQueryString(nvc, "age"));
            Console.WriteLine(MVCHelper.UpdateQueryString(nvc, "money", "2000"));
            Console.WriteLine(MVCHelper.ToQueryString(nvc));
        }