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 are Memory foot print of an exe?

586


Where’s global assembly cache located on the system?

619


What is dictionary and hashtable in c#?

546


What is the difference between method and function in c#?

539


Is comparator a functional interface?

542






Why constructor is used in c#?

575


What is ildasm and obfuscator in net?

629


What is hashmap in c#?

551


List the fundamental oop concepts?

606


What are tuples c#?

566


What is polymorphism c# example?

575


Is string a primitive data type in c#?

579


How do you comment in c#?

600


How do you declare a method in c#?

578


If you define a user defined data type by using the class keyword, is it a value type or reference type?

592