Invert Boolean Dialog Box
See Also
Use this dialog box to replace a Boolean method or variable with an opposite one. You can use the Refactor command to both rename an existing method or variable and invert its logic.
The Invert Boolean dialog box appears after you have chosen the Refactor > Invert Boolean command while having a Boolean method or variable selected in the Source Editor.
The Invert Boolean dialog box has the following field:
- New Name. Contains the name for the inverted method or variable to be applied. Specify the new name for the inverted method or variable by modifying this field.
Unless you click Refactor, you need to follow these steps
to complete the refactoring:
- Click Preview.
The Refactoring
window opens and displays a tree view of the code to be affected by the refactoring.
- Check the items displayed in the Refactoring window to make sure that you want them
all changed. Clear the checkbox next to any parts of the code that
you do not want changed.
- Click Refactor.
- You should always perform a clean build after completing
any refactoring commands. You can do a clean build by right-clicking the project's
node in the Projects window and choosing Clean and Build Project.
- See Also
- Refactoring: Quick Reference
- Undoing Refactoring Changes
Legal Notices