Difference between Indexers and Properties

Indexers

Properties

Indexers are created with this keyword

Properties don't require this keyword

Indexers are identified by signature

Properties are identified by their names

Indexers are accessed using indexes

Properties are accessed by their names

Indexer are instance member, so can't be static

Properties can be static as well as instance members

Ebook Download
View all
Learn
View all