I would need a data structure that
I am t
does it work?
class MyHashSet : HashSet { public T this[int index] { get { int i = 0; foreach (T t in this) { if (i == index) return t; i++; } throw new IndexOutOfRangeException(); } } }