Get individual query parameters from Uri

Posted by Ghostrider on Stack Overflow See other posts from Stack Overflow or by Ghostrider
Published on 2010-05-21T18:25:22Z Indexed on 2010/05/21 18:30 UTC
Read the original article Hit count: 231

Filed under:
|
|

I have a uri string like: http://example.com/file?a=1&b=2&c=string%20param

Is there an existing function that would convert query parameter string into a dictionary same way as ASP.NET Context.Request does it.

I'm writing a console app and not a web-service so there is no Context.Request to parse the URL for me.

I know that it's pretty easy to crack the query string myself but I'd rather use a FCL function is if exists.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#