Is there a way to automatically shadow all inherited properties

For example:

I want to derive from a form but I want to shadow all the properties and
methods. Can this be done using ReSharper? Can't find it...

Gabriel Lozano-Morán


3 comments
Comment actions Permalink

Hello Gabriel,

what exactly do you mean by 'shadowing'? If it is hiding inherited members
with
'new' keyword, I'm afraid there is no such a way.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

For example:

I want to derive from a form but I want to shadow all the properties
and methods. Can this be done using ReSharper? Can't find it...

Gabriel Lozano-Morán



0
Comment actions Permalink

Yes something like Generate delegating members but indeed shadowing the
properties with the new keyword.

Gabriel

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d9b470e8c7be61688eb987@news.intellij.net...

Hello Gabriel,

>

what exactly do you mean by 'shadowing'? If it is hiding inherited members
with
'new' keyword, I'm afraid there is no such a way.

>
>

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>

For example:

>

I want to derive from a form but I want to shadow all the properties
and methods. Can this be done using ReSharper? Can't find it...

>

Gabriel Lozano-Morán

>

>
>


0
Comment actions Permalink

Also another issue, the generate delegating members will also generate
delegating members for internal, protected, private methods

Gabriel


0

Please sign in to leave a comment.