Reduce Visibility
In This Article
Reduces the visibility of a method or property to match the highest calling visibility.
#Availability
Available from the context menu or via shortcuts:
- when the caret is on a method or property declaration.
#Notes
- If the selected property or method is not used by other classes or by descendants, the visibility is reduced to private. If descendants use these members, the visibility is reduced to protected, etc.
#Example
│public string Name;
│Public Name As String
Result:
│internal string Name;
│Friend Name As String