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 is sealed class in c#?

696


Explain boxing and unboxing in c#?

695


Is datetime nullable c#?

685


Which operator cannot be overloaded in c sharp?

666


Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

804


What happens when thread sleep () method is called?

672


What is form feed in c#?

736


Is there a way to force garbage collection?

712


How to install or uninstall a windows service?

776


What is data types in c#?

704


How do you specify a custom attribute for the entire assembly?

666


Why do we need nullable types in c#?

902


Can we have two main methods in c#?

722


What are value types in c#?

689


What is use of FormBoarderStyle Propertie

699