c# - Best way to take all querystring pairs and init a dictionary -


I want to store all key / value pairs in my query string:

  Www in a dictionary example.com/?a=2&b=3&c=34  

is there a quick way to do this that to take a ride manually through all the objects is?

Try HttpUtility.ParseQueryString () .

This returns you the NameValueCollection of your keys and values.


Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -