Ajay Yadav12y agoPosted Oct 27, 2014, 10:27 PMProperties are one of the nicest mechanisms within C# and the CLR that enable you to enforceencapsulation better. In short, we use properties for strict control of access to the internal state of an object.
Dipankar Biswas12y agoPosted Oct 27, 2014, 3:10 PM There are a few reasons to use properties, instead of public fields/methods.(i) Properties can be virtual.(ii) You can make the setters for a property private.(iii) Properties have a 'special' meaning to things that inspect classes at runtime.See this linkhttp://www.itorian.com/2012/07/properties-in-c-howwhy-we-use-this.html
Ajay YadavPosted Oct 27, 2014, 10:27 PM
Dipankar BiswasPosted Oct 27, 2014, 3:10 PM
See this link
http://www.itorian.com/2012/07/properties-in-c-howwhy-we-use-this.html