I want to hold about 30 strings in a static "collection". I then need to check the path of an incoming web request against this list.
I was thinking of using a StringDictionary with the Key and the Value having the the same values. However it just seems odd when all I really want is a key look up, so I can check for existence rather than look up a value to use.
Am I worrying about nothing?
Pat
What language are you using?
.NET supports Hashset<>, which fits what you're describing.
If you just need a key lookup to check for existence, use a Set instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With