| Author: vipul 07 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi, for that you can refer this link they provide good article on your question http://stackoverflow.com/questions/295104/what-is-the-difference-between-a-field-and-a-property-in-c
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|
| Author: ABitSmart 07 Nov 2009 | Member Level: Diamond | Rating:   Points: 3 |
Basically, Property is a wrapper over a Field. Field is the basic memory storage of an object while Property is a way to access fields. Good code standards outline fields to be kept private and accessed from a property. e.g.
private string _field; //this is a field
//this is property to the field public string PropertyField { get { return _field; } set { _field = value; }
Kind regards, ABitSmart DNS Web-master, DNS MVM My blog Thoughts.exe
|