C# Indexers
In this code snippet, we will learn how to implement indexers in C#. Indexers allow classes to be indexed just like arrays. To retrieve or set a value you just provide an index inside a set of square brackets just like you would for an array.