c# - How do i parse a dictionary from a uri? -
i'm trying write webservice method pulls string/string dictionary uri. wrote signature this, hoping smart enough parse dictionary itself:
([fromuri]dictionary<string, string> parameters)
the query string in uri looks this: ?keyfordictionary=valuefordictionary
when moused on "parameters", showing null. next decided try , accept string, instead of dictionary, , parse out dictionary in body of method. when moused on string... showed key-value pair!! can tell me how either a) dictionary uri, or b) manipulate mysterious "key-value/string" object can pass stuff db? also, links guys have on understanding what's going on here appreciated.
Comments
Post a Comment