Before that, any of the alternatives mentioned by Peter would do. I've
usually used Dictionaries with a dummy value, or Dictionaries where the keys
were the values, depending on what was more convenient. This is not as
efficient as a specialized collection, but it suffices in most cases.