I have a set of data objects that I use to bind data that implement the INotifyPropertyChanged interface, and I'm trying to figure out what to do with properties of a complex type.
If I have something like
class C {
private string text;
public string Text {
get { return text; }
set {
if(Text != value) {
text = value;
OnPropertyChanged("Text");
}
}
}
}
I know what to do, but what if the property is changed, presumably, I should also notify about changes in the type.
If the property itself implements INotifyPropertyChanged, maybe I can handle this event and create its bubble, but should I do the same if I call ListChangedEvent (let's say it's IBindingList)?
This is .NET 2.0, so no dependency properties, etc. is not allowed.
Bobby