RAD Studio (Common)
ContentsIndex
PreviousUpNext
Refactoring: Introducing Fields
To introduce a field:

  1. Select expression in the Editor.
  2. On the main menu, chooseRefactoringIntroduce Field
    Tip: Alternatively, you can choose Refactoring->Introduce Field
    on the context menu.
  3. 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.
  4. If applicable, check the Static and Replace all occurrences fields.
  5. Click OK to complete the refactoring.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!