Properties
what is the purpose of properties?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 8, 2013, 8:06 PM EDT
Properties are smart fields. Smart being you can add logic when you want to get or set the value. Usage example: if you want to validate the values being set to a property or if you want to combine values from different fields without exposing those fields to the public.
Refer the below links
http://msdn.microsoft.com/en-us/library/w86s7x04(v=vs.80).aspx
http://www.codinghorror.com/blog/2006/08/properties-vs-public-variables.html
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 8, 2013, 8:38 AM EDT
http://www.dotnetspider.com/tutorials/DotNet-Tutorial-273.aspx
http://www.c-sharpcorner.com/UploadFile/rajeshvs/PropertiesInCS11122005001040AM/PropertiesInCS.aspx
Posted Jul 8, 2013, 2:14 PM EDT
https://www.google.com/search?sitesearch=dotnetperls.com&q=Properties+
VulpesRank #55 · 29.2K reputationPosted Jul 8, 2013, 2:58 PM EDT
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 8, 2013, 7:52 PM EDT
http://www.c-sharpcorner.com/UploadFile/rajeshvs/PropertiesInCS11122005001040AM/PropertiesInCS.aspx