[Mono-dev] Problem with a NameValueCollection
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Mon Apr 13 12:20:03 EDT 2009
On Mon, 2009-04-13 at 13:22 +0200, Sebastian Schäfer wrote:
> i'm using the myspaceid-sdk and want to use it with mono 2.4...
> And there is a problem with the handling of a NameValueCollection...
> the code looks like:
> var query = HttpUtility.ParseQueryString(uri.Query); // creates an empty
> resourceUri += "?" + query;
> in dotnet this will create a string like "http://www.website.com?key=value"
> in mono the string looks like "http://www.website.com?NameValueCollection"
Displaying 'query.GetType ()' will give 'HttpValueCollection' under MS
runtime. So they are returning a class derived from NameValueCollection
in which ToString does what you expect.
It will be fixed in Mono in a few minutes.
More information about the Mono-devel-list