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

What is the difference between an application domain and a process?

478


Why is c# better than java?

499


What is polymorphism c# example?

483


What are the boolean data types in c#?

510


Which namespaces are necessary to create a localized application?

608






What is difference between for and foreach loop in c#?

528


Can we declare private class in c#?

476


What is type safe code?

472


what class is underneath the sortedlist class?

549


What is the use of 'as' Keyword in C# ?

576


Why is c# good for games?

522


What is the meaning of int parse in c#?

502


Is string value type c#?

487


How do I stop my console from closing in c#?

457


What is data annotation in c#?

503