[Feature] Specify the generated ObservableProperty name #795
Labels
analyzer 👓
A new analyzer being implemented or updated
feature request 📬
A request for new changes to improve functionality
mvvm-toolkit 🧰
Issues/PRs for the MVVM Toolkit
I would like to contribute an update to the ObservableProperty attribute that would allow the user to specify the resulting property name. This would involve adding a string property, SpecifiedPropertyName, to the ObservableProperty attribute class in addition to a new, overloaded constructor that accepts the specified property name as a parameter. If the SpecifiedPropertyName is not null or whitespace, the property with the specified name is generated. Otherwise, the current method for generating the property name will be used. For example,
will generate the observable property,
The purpose of this feature is to allow users to specify the property name when the private member variable does not follow common naming conventions.
The text was updated successfully, but these errors were encountered: