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 are the Types of values mode can hold session state in web.config
What's the difference between abstraction and encapsulation?
Is inheritance possible in c sharp?
What is difference between an Structure and Class?
What is the difference between dynamic type variables and object type variables in c#?
What is parallel foreach c#?
Why we use extension methods in c#?
What is the difference between constant and readonly in c#?
How do you mark a method obsolete?
What are the Types of compatabilities and explain them
What is a boolean c#?
What is the difference between delegates and events in c#?
What is private readonly in c#?
What is dataadapter c#?
What are the types of delegates in c#?