Answer Posted / anil
Indexers are Location indicators and are used to access
class objects, just like elements in an array. They are
useful in cases where a class is a container for other
objects.
1.Indexer takes an Index argument and looks like an Array.
2.Indexer is declared using the name this.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is polymorphism and its types in c#?
Are tuples mutable c#?
Why linq is having select clause at the end?
What is stringreader in c#?
Explain the types of errors in c#?
What are callback methods in c#?
what is scope of a protected internal member variable of a c# class
Explain the 3 types of properties in c# with an example?
Is it possible to have different access modifiers on the get/set methods of a property?
What is the difference between Decorator and Adapter pattern?
Is string nullable c#?
What is the keyword used to prevent a class from being inherited by another class?
What is the difference between field and property in c#?
Why delegates are safe in c#?
In which format you can pass the value in the sleep function?