RAD Studio (Common)
Refactoring: Introducing Fields
See Also
Collapse All
To introduce a field:
Select expression in the Editor.
On the main menu, choose
Refactoring
Introduce Field
Tip:
Alternatively, you can choose Refactoring->Introduce Field
on the context menu.
In the resulting dialog, specify the following:
Name:
Enter the name of the new field
Visibility
: Using the list box, choose the visibility for the new field from
public, protected, private, internal,
or
internal protected
.
Initialize
: Choose where to initialize the new field. Using the list box, choose from
Current method, Class constructor(s)
, or
Field declaration
.
If applicable, check the Static and Replace all occurrences fields.
Click
OK
to complete the refactoring.
See Also
Refactoring overview
Introduce Field dialog box
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic?
Send feedback!