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
You can use the key for lookup instead of having two loops:
foreach (string key in nvc) { Console.WriteLine("{0} {1}", key, nvc[key]); }