Learning F # while trying to do something useful at the same time, so this is a pretty simple question:
I have req , which is an HttpListenerRequest , which has a QueryString property, with type System.Collections.Specialized.NameValueCollection . So, for the sake of clarity, let me say that I have
let queryString = req.QueryString
Now I want to create a beautiful string (not printf for the console) from its contents, but queryString.ToString() does not seem to override, so it just gives the string "System.Collections.Specialized.NameValueCollection".
So, what is single-line F # to get a good line from it, for example, "key1 = value1 \ nkey2 = value2 \ n ..."?
source share