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 service layer c#?
Explain when should you call the garbage collector in .net?
Is dictionary a collection?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
What is a event in c#?
Explain synchronous and asynchronous operations?
What are instance fields in c#?
What is a framework in c#?
Why do we override in c#?
Explain the use of Mutex in C#?
What is strong name in c# and how can we use it?
What are the 3 different types of arrays?
What is the advantage of generics in c#?
What is the difference between abstract and virtual?
What are the advantages of using c#?