CodeRush INotifyPropertyChanged interface support
Since ancient times, CodeRush has supported the INotifyPropertyChanged interface implementation. The interface provides a standard way to notify binding clients of a property value change. It has just one event, with a simple and clear name, PropertyChanged.
The most important part of the support of this interface is connected to the code templates. Once you expand a property template in a class that implements the INotifyPropertyChanged interface, you will see the corresponding code generated. For instance, expanding the ‘ps’ template will produce the following code:
You can immediately rename the property including the field references and an argument to the PropertyChangedEventArgs. No matter what technology you are using, WinForms, WPF or Silverlight, code templates will be expanded appropriately in any technology.
If you already have properties in your code and would like to convert them into properties supporting the INotifyPropertyChanged interface, you might want to take a look at the community plug-in that allows you to expand or convert a property declaration so that it also fires the PropertyChanged event by Brian Noyes. To learn more about this plug-in, visit its official page on the DXCore community.—– Products: CodeRush Pro Versions: 12.1 and up VS IDEs: 2008 and up Updated: Jul/31/2012 ID: C171