Hello,
the JC function "Convert to property with backing field" is really good and I use it quite often,
but it does not recognize the Code style settings "Use 'this' qualifier....".
This is annoying, because we check our code with stylecop and want a this qualifier where it has to be.
So I enabled it in the settings, but the setting is ignored.
PS: Another feature suggestion for this function.
I mostly need to convert the Property to a property with backing field when a property changed notification is required and I have to add it manually. Perhaps the function could be improved in this way (by an option) that when the class implement INotifyPropertyChanged, a code piece like this
if
(
this
.PropertyChanged !=
null
)
{
this
.PropertyChanged(
this
,
new
PropertyChangedEventArgs(
"<propertyName>"
));
}
is added to the property, or the property modification could be based on a code/snippet from Visual Studio.
Best Regards,
Matthias