Is there a quick and simple way to check if a key exists in a NameValueCollection without looping through it?
Looking for something like Dictionary.ContainsKey() or similar.
There are many ways to solve this of course. Just wondering if someone can help scratch my brain itch.
From MSDN:
So you can just:
collection[key]callsbase.Get()thenbase.FindEntry()which internally usesHashtablewith performance O(1).