About Indexer

An Indexer is the context of C# and it is a class member used to provide arrays indexing functionality which is used for easy object property access. An Indexer is mostly used when an array is encapsulated within a type and it is simple Indexer syntax which helps client applications access element groups as an array object member. An Indexer provides an indirect method of inserting boundary checking logic and Indexer improves code readability. Indexer is often used to implement a stack so that its contents may be accessed without item removal. Java Indexer implementation is similar to C#. Generally Indexer could be used in library code, due to their ease of use and flexibility.

Related resources for Indexer