What is indexers in C#

Answer Posted / abdul razack

n c# introduce new concept is Indexer. This is very useful for some situation. Let as discuss something about Indexer.
Indexer Concept is object act as an array.
Indexer an object to be indexed in the same way as an array.
Indexer modifier can be private, public, protected or internal.
The return type can be any valid C# types.
Indexers in C# must have at least one parameter. Else the compiler will generate a compilation error.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use get and set property in c#?

515


What is form feed in c#?

565


What is the usage of OLE?

586


What is the difference between interface and abstract class in c#?

461


What is executereader in c#?

476






How do you prevent a method from being overridden in c#?

456


If you want to write your own dot net language, what steps you will u take care?

559


Explain acid rule of thumb for transactions in c#.

524


Where’s global assembly cache located on the system?

528


What is static variable in c#?

492


How many variables do you need?

494


Can you drink alcohol with a loop recorder?

493


What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?

603


What is an int c#?

480


What is difference between ienumerable and ienumerator in c#?

512