What is indexers in C#

Answer Posted / satish

C# introduces a new concept known as Indexers which are
used for treating an object as an array. The indexers are
usually known as smart arrays in C# community. Defining a
C# indexer is much like defining properties. We can say
that an indexer is a member that enables an object to be
indexed in the same way as an array.

Is This Answer Correct ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by jagged array?

493


What is the use of static in c#?

489


Why do canadians say zed?

518


How does return work in c#?

506


What are different types of classes in c#?

483






How long does it take to learn c# programming?

470


What is iqueryable in c#?

492


What is sqlconnection in c#?

493


How can you access a private method of a class?

508


What is the signature of a method?

483


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

512


Difference between abstract classes and interfaces

511


Is 0 an unsigned integer?

496


What is the difference between “constant” and “readonly” variables in c#?

500


What are the advantages of interface in c#?

502