Encapsulate multiple properties at once with Resharper 4.0

When using Resharper to encapsulate class properties, is there a way to get it to do more than one property at a time?

+4
source share
2 answers

You might or might not know this (R # really lacks detection, unless you print a one-page page with keywords), but ALT-INS opens a field that can generate properties for fields.

Not sure if this usage is not the same as retrospective encapsulation.

+9
source

I do not think there is such an opportunity out of the box.

However, you can write an RS plugin that does this. But that would be another question ...

-1
source

Source: https://habr.com/ru/post/1276490/


All Articles