I have a list of a few thousand integer keys. The only thing I need to do with this list is say whether or not a given value is in the list.
For C# I would use a
Use an object. To add a key to the set, do:
object[key] = true;
To test whether a key is in the set, do:
if (object.hasOwnProperty(key)) { ... }
To remove a key from the set, do:
delete object[key]