Indexer is special type of property - Csharp.Net

Q.  An indexer is
- Published on 31 Aug 15

a. A class
b. A structure
c. An enumeration
d. A special type of property

ANSWER: A special type of property
 
An indexer is a special type of property. this keyword is used to define the indexers. A get accessor returns a value. A set accessor assigns a value.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)