If I have a string like so:
"Name=Irwin&Home=Caribbean&Preference=Coffee"
is there a method in C# that can convert that to a key-value pair similar to Request.QueryString?
Home / DeveloperSection / Forums / Convert query string to key-value pair
If I have a string like so:
"Name=Irwin&Home=Caribbean&Preference=Coffee"
is there a method in C# that can convert that to a key-value pair similar to Request.QueryString?
Sumit Kesarwani
03-Sep-2014You can also use the ToDictionary() method: