Inherit from an existing collection type, as shown in other answers.
Implement the System.Collections.IEnumerable or System.Collections.Generic.IEnumerable interface, which also means writing your own implementation of System.Collections.IEnumerator or System.Collections.Generic.IEnumerator