August 2010
Intermediate to advanced
1224 pages
34h 17m
English
The Encapsulate Field dialog box, shown in Figure 10.21, enables you to set a few options for this refactor. First, it presents the field you are refactoring in a read-only text box. Next, it enables you to define a name for the new property. The good news is that the tool tries to name your property correctly. For example, if you have a private field named _rating, the tool chooses Rating for the property name by default.
Figure 10.21 The Encapsulate Field dialog box.

An additional option on this dialog box is the choice of which references you would like to have updated. This refers to existing references to ...