Stuart Blackler Stuart Blackler - 1 year ago 59 Question

Working with List<String> and Reactive extensions

I have started researching Reactive extensions and I would like to know how to do the following (ill try and keep it simple):

  1. Have a list of string (or any other type)

  2. When an item is added to the said list, do something with it.

Answer Source

You can't do that with the existing List<String> class - it doesn't provide notifications, and there's nothing that Reactive Extensions can do about that.

You might want to look at ObservableCollection<T> though.