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
What is a c# delegate?
What can we do to handle multiple exceptions?
What framework is used for performance testing/load testing?
What is the difference between ref and out in c#?
How do you clear a list in c#?
What is ado c#?
Why dataset is used in c#?
Is arraylist type safe in c#?
What is the difference between Singleton design pattern and Factory design pattern?
Explain the difference between abstract class and interface.
How can i Spawn a Thread
What's the difference between abstraction and encapsulation?
What is array collection?
Name some string escape sequences in c#.
What is the difference between ienumerable and icollection?