Important points to remember on indexers

·         Indexers are always created with this keyword.

·         Parameterized property are called indexer.

·         Indexers are implemented through get and set accessors for the [ ] operator.

·         ref and out parameter modifiers are not permitted in indexer.

·         Indexer is an instance member so can't be static but property can be static.

·         Indexers are used on group of elements.

·         Indexer can be overloaded.

Ebook Download
View all
Learn
View all