SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Siegfried Pammer

October 2011 - Posts

  • SharpDevelop 4.2: Reimplemented "Create properties"

    One of the features still missing after "Alt+Ins" was removed, "Create properties" was reimplemented and added to the recent builds of SharpDevelop 4.2 (master branch).

    It can be reached by selecting "Create properties" from the refactoring main menu, or by typing propall and pressing tab in the editor (C# only):

    It will insert a small dialog at the caret position:

    You can select all the fields you want to create properties for. As you can see there are some options, you can choose whether to generate the setter of a property. Additionally you can choose to implement INotifyPropertyChanged. It will implement the interface, if it has not been implemented yet, and will add an OnPropertyChanged method. A call to OnPropertyChanged will be inserted into each property setter:


    I hope you like the return of this feature. Leave comments if you have any suggestions or problems!

Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.