List<a>
class X : inotify { string id; YCollection YCol; ZCollection ZCol; } YCollection : List<y> { Add(Y) { --- } Remove(Y) { } } Class Y: inotify { string ID; ACollection ACol; } Class ACollection : List<a> { Add(A) Remove(A) } class A : inotify { string ID; }
ObservableCollection
List
private ObservableCollection<MyClass> _myProperty; public ObservableCollection<MyClass> MyProperty { get { return _myProperty; } set { _myProperty = value; _myProperty.CollectionChanged += new NotifyCollectionChangedEventHandler((object sender, NotifyCollectionChangedEventArgs e) => { //Some Code } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)