You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HttpUtility.ParseQueryString(...) states that the return value is NameValueCollection while in fact it returns HttpValueCollection.
HttpValueCollection derives from NameValueCollection and techincally 'is' NameValueCollection,
The HttpValueCollection.ToString() implementation is quite different form the one in NameValueCollection.
The HttpUtility.ParseQueryString(...) documentation implies one can create new NameValueCollection() instead of calling the method, and it will behave the same way.
E.g. based on the documentation the code blow should produce the same result.
var query = HttpUtility.ParseQueryString("");
query["message"] = message;
query.ToString();
var query = new NameValueCollection();
query["message"] = message;
query.ToString();