Refactorings for changing members accessibility and scope visibility
February 13th, 2012
There are a couple of visibility-changing refactorings shipped in DevExpress Refactor! Pro.
Reduce Visibility
This refactoring allows you to quickly reduce the visibility of a member to match the highest calling visibility, in other words, to restrict the visibility as much as possible.
Widen Scope
This refactoring moves the variable declaration outside the current scope block to increase its visibility for other blocks.
Widen Scope (promote to field)
This refactoring converts a local variable into a field and moves it to the top class-level scope.
Widen Scope (promote to constant)
This refactoring moves a local constant to a class-level scope and replaces all similar constant values with the reference to a constant.
—– Products: Refactor! Pro Versions: 11.2 and up VS IDEs: 2008 and up Updated: Feb/13/2012 ID: R052