What are the advantages of using Properties in C#.Net?

 Posted by Tripati_tutu on 11/15/2010 | Category: C# Interview questions | Views: 7456 | Points: 40

The advantages of using properties are:

• Before allowing a change in data, the properties can validate the data.
• Properties can evidently make visible of data on a class from where that data is actually retrieved such as a database.
• Properties can also provide events when data is changed, such as raising an event or changing the value of other fields.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response