User Id :    Password :      New Member   Forgot Password  
Topic: What are the two kinds of properties
Anamika singh
20 Oct 2010 at 03:10 AM
What are the two kinds of properties?
Re: What are the two kinds of properties
22 Oct 2010 at 10:42 PM

Two types of properties in .Net: Get & Set Two kinds of properties are scalar properties and indexed properties.

Indexer allows classes to be used in more intuitive manner. C# introduces a new concept known as Indexers which are used for treating an object as an array. The indexers are usually known as smart arrays in C#. They are not essential part of object-oriented programming. 

An indexer, also called an indexed property, is a class property that allows you to access a member variable of a class using the features of an array.

Total Replies: 1
Featured Text Ad

Featured Ad