|
|
|
[
Permlink
| « Hide
]
Andrey Simanovsky - 28 Sep 06 21:17
Do you apply the fix on a particular highlighting, or do you just use a context action?
Being a keyboard freak, I use the wonderful Alt+Enter against the quickfix lightbulb and select the new access modifer.
See the attached video in Resharper263AccessModifierBug.zip Contains an htm and swf screen video of the problem
This particular context action was not planned to support changing access modifiers in hierarchy. It was supposed to give an idea of what modifiers can be used with the member.
Fair enough. What is the correct R# action, assuming there is one, to take in order to achieve this refactoring?
I'm afraid, there is no way of doing that in one step at present. You can find all overrides via advanced find usages, change access modifier in base member and then look through the overrides and apply quickfix on each of them. We will consider providing a way to perform this refactoring.
Refactoring should be able to change access modifiers in hierarchy, warn about possible access conflicts (including "inconsistent accessibility"), and provide choice to automatically select the least possible access level.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||