What are properties and indexer?

Answer Posted / priya

1. An index is identified by it's signature. But a property
is identified it's name.
2. An indexer is always an instance member, but a property
can be static also.
3. An indexer is accessed through an element access. But a
property is through a member access.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens when thread sleep () method is called?

498


What is the use of static members with example using c#.net.

487


What is the difference between asp net and c#?

491


What is dao in c#?

488


What is extended class in c#?

469






Differentiate between sqlclient oledb and providers?

497


What does get set mean in c#?

491


What are types of constructor?

471


What is desktop example?

485


What is semaphore in c#?

506


What is private variable?

482


How can I get around scope problems in a try/catch?

473


From which base class do all Web Forms inherit from?

519


Are classes passed by reference in c#?

481


Do loops c#?

499