<p>Is it possible to create a list that can be access by either an index or a key?</p>

<p><em>I am looking for a Collection type that already exists but has this facility, I want to avoid redefining the indexers</em> </p>

You can add an indexer by adding the following property to your collection:
```
```
public object this[int index]
{
    get { /* return the specified index here */ }
    set { /* set the specified index to value here */ }
}
```
```
This can be quickly added in Visual Studio by typing
indexer
and pressing [tab] [tab].
The return type and indexer type can be changed ofcourse. You can also add multiple indexer types.