Home

Dump on a NameValueCollection

Calling the Dump method on a NameValueCollection only shows the names of the keys and not the values. Can this be changed to also show the value next to the corresponding key please, @JoeAlbahari ?

var nvc = new System.Collections.Specialized.NameValueCollection(); nvc["foo"] = "bar"; nvc["hello"] = "world"; nvc.Dump();
NameValueCollection (2 items)
foo
hello
This collection class is quite useful when using the System.Net.WebClient's UploadValues method.

Comments

Sign In or Register to comment.