title: Why does an indexer property in a class need a private array field and not just an integer telling the object its index?
body: <p>I thought the point of indexers was so that if you had an array or list of a certain class in something like a winform, you could just get the index of the object by typing myObject[index].SomeMethod();</p>
  
  <p>Why do examples about indexers in C# need for a class to have a private field of an array, and then the public indexer property gets the index from that private array? Wouldn't it be better to just hold an integer that tells it what its index is? What's the difference?</p>