Home > DeveloperSection > Interviews > what is difference between indexers and properties?

Posted on    January-24-2011 12:00 AM

 C# C# 
 1 Answer(s)
  1676  View(s)
Rate this:

Vikas Giri
Vikas Giri

Total Post:33

Posted on    January-24-2011 1:00 AM

Difference between indexers and properties

Properties allow methods to be called as though they were public data members. It accessed through a simple name. It can be a static or an instance member.

Indexers allow methods on an object to be called as though the object is an array. It access through an index. It must be an instance member.

Don't want to miss updates? Please click the below button!

Follow MindStick