I am trying to decide if I want to switch all of my IEnumerable
collections over to Observable Collections. I cannot find a good explanation of this. What are t
The largest benefit to using ObservableCollection is it implements INotifyCollectionChanged and INotifyPropertyChanged, automatically, which makes it simpler to data-bind. I would say that it's better to use ObservableCollection when you are first setting up your data-bindings.
But now that you have already coded up (and data-bound?) a bunch of IEnumerables, there isn't any savings to be had, at this point.
Another thing to consider is that ObservableCollection
is an IEnumerable
(Inherited from Collection
). Since IEnumerable
is an interface, it is implemented by many classes List
is one such class - ObservableCollection
is another.