2 comments
Comment actions Permalink

Hello Graham,

If you want to keep the field usages unchanged, you can use ReSharper | Edit
| Generate Code | Properties to encapsulate your field. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Just like IntelliJ.

---
Original message URL:
http://devnet.jetbrains.net/message/5276537#5276537



0
Comment actions Permalink

Andrey,


The alternative is more keystrokes and requires searching for the field twice.  There is a check box "Replace external usages only" in the Encapsulate Field dialog that could be enabled (and preferably checked by default) for the circumstance where there are currently no external usages of the field, but the user still prefers to only hide data just from other classes instead of from all classes, including itself.


Thanks,

Graham
0

Please sign in to leave a comment.