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 the benefit of using interface in c#?
How does dependency injection work c#?
What is token in c#?
What tool we have to use to install assembli in gac folder.
what is difference between destruct or and garbage collection ?
What is difference between write and writeline in c#?
Why data types are important?
How can you use abstract class and interface?
What are async and await?
what is boxing and unboxing?can we initialize unboxing directly?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
What are functions in c#?
Why do we use interfaces in c#?
What is the object class in c#?
Where value types are stored in c#?