C# lets you write your own indexers to allow access with square brackets. Here are the basics, along with some more advanced features and a few tips and tricks.
Source code available at: https://github.com/JasperKent/Indexers
Topics include:
- Indexers in arrays, Lists and Dictionaries
- Writing your own indexers
- Multi-parameter indexers
- Using get and set
- Indexers as properties
- Indexers in Common Intermediate Language
- Dealing with out-of-range errors