What is indexers in C#

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


Please Help Members By Posting Answers For Below Questions

Is c# a keyword?

494


What is null character in string?

519


What is the difference between abstract and abstraction?

440


What are primitive types in c#?

533


what is the meaning of Object lifetime in OOPS

535






what is IFormatable

576


What is the do while loop code?

489


Are arrays immutable c#?

519


What is managed or unmanaged code?

586


Explain how to parse a datetime string?

506


Explain the top reason to use c# language?

499


What is dependency injection in simple words?

503


Why do we need generics in c#?

509


How long can loop recorders stay in?

614


What is difference between singleton and static class in c#?

474