Defining Properties
Sunday, 28 March 2010 18:11
administrator
Properties allow you to set and get fields using methods. Properties are a valuable feature of C# because they enable you to hide fields from your class users by making the fields private, while still giving users an easy way to get at those fields. You can think of a property as a wrapper around a private field, through which the field is accessed.
|