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
Is int an object in c#?
What is an expression in c#?
What is signature c#?
What is thread safe in c#?
Explain About CLS?
What is xml serialization in c#?
What are the two uses of a ‘using’ statement in c#?
What is difference between association, aggregation and inheritance relationships?
What are the advantages of constructor?
Can I call a virtual method from a constructor/destructor?
What does void do in unity?
Difference between a sub and a function in c#.
How to install or uninstall a windows service?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
How does c# achieve polymorphism?