Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static string ToQueryString(NameValueCollection values){
- var httpCollection = HttpUtility.ParseQueryString("");
- httpCollection.Add(values);
- return httpCollection.ToString();
- }
- private static string ToQueryString(IDictionary<string, string> values){
- var httpCollection = HttpUtility.ParseQueryString("");
- foreach (var entry in values){
- httpCollection.Add(entry.Key, entry.Value);
- }
- return httpCollection.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement