Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a List<T> in .NET 2 that raises events when the list changes?

I have used ObservableCollection<T> in the past, but that seems to belong to WPF and therefore .NET 3.

And if there isn't what would be the appropriate interface for that? INotifyPropertyChanged seems not to be a very good fit for collections, while INotifyCollectionChanged is again only supported in .NET 3 and higher.

like image 916
Joey Avatar asked Dec 07 '22 06:12

Joey


1 Answers

BindingList<T>

like image 82
Romain Verdier Avatar answered Apr 27 '23 13:04

Romain Verdier