Moving from MZ-Tools 3.0 to 8.0 Part 26: Converting multiple fields to properties

MZ-Tools 3.0 already offered a Convert Field to Property feature that allowed you to transform a public field of a class into a property. However, if you needed to convert multiple fields, you needed to do it one by one, which required extra clicks.

MZ-Tools 8.0, when converting a single field, works like MZ-Tools 3.0. You start by putting the cursor on the line of a field:

ConvertFieldToProperty

Then you invoke the Convert Field to Property feature to get a dialog to review the values:

ConvertFieldToPropertyDialog

And after clicking the Insert button you get the new code:

ConvertedFieldToProperty

While the cursor is positioned on the next line to start a new cycle with the next field, MZ-Tools 8.0 allows you to select multiple fields:

ConvertFieldsToProperties

And then, when invoking the Convert Field to Property dialog, notice in the caption that there will be several conversions:

ConvertFieldsToPropertiesDialog

And after clicking the Insert button several times you get the whole new code:

ConvertedFieldsToProperties

So, this is another area where MZ-Tools 8.0 can make you more productive saving extra clicks if you need to perform multiple field to property conversions.