此重构操作生成的代码将由封装字段代码段功能来建模。
The code that is generated by this refactoring operation is modeled by the encapsulate field code snippets feature.
“封装字段”重构操作,可以从现有字段快速创建属性,然后使用对新属性的引用无缝更新代码。
Encapsulate field refactoring operation enables you to quickly create a property from an existing field, and then seamlessly update your code with references to the new property.
“封装字段”使用逗号作为字段之间的边界,并对与光标位于同一行且距离光标最近的某个字段启动重构。
Encapsulate field USES the comma as a boundary between fields, and initiates refactoring on the field that is nearest the cursor and on the same line as the cursor.
应用推荐