Sourcing from a finite collection is quite useless with regard to reactive programming. However, specific enumerable collections are perfect for reactive uses. These collections are the changeable collections that support collection change notifications by implementing the INotifyCollectionChanged
(System.Collections.Specialized
) interface like the ObservableCollection
(System.Collections.ObjectModel
) class and any infinite collection that supports the enumerator pattern with the use of the yield
keyword.
The ObservableCollection<T>
class gives us the ability to understand, in an event-based way, any change that occurs against the collection content. Kindly consider that changes regarding collection child properties are outside of the collection scope. This means that we are notified only for collection changes like the one produced from the Add
or Remove
methods. Changes within a single item do not produce an alteration of the collection...