I have a NameValueCollection, and want to iterate through the values. Currently, I’m doing this, but it seems like there should be a neater way to do it:
NameValueCollection
foreach ( string key in nvc.Keys ) Console.WriteLine("{0} {1}", key, nvc[key]);
This will return you all keys and corresponding values.