Possible Duplicate:
Automatically INotifyPropertyChanged
INotifyPropertyChanged and Auto-Properties
Currently I refactor an existing class in a WPF project to implement the INotifyPropertyChanged. The problem is that this class has around 150 members. So I have to write the following code for each members.
private string _member1;
...
public string Member1
{
get { return _member1; }
set { _member1 = value; OnPropertyChanged("Member1"); }
}
It's a tiring and dull job. Is there a convenient way to implement the INotifyPropertyChanged?