C#C
C#2y ago
gwon8266

I am trying to create List that can perform an action whenever I make a change to it.

I recently started learning how to use Blazor and I saw how reactive it was on the webpage.
So I decided to write my collection in a way that it emits an event and updates parts the page whenever I make a change to it. I started with List<T> before going on to ObservableCollection<T> . But with the ObservableCollection I can only emit events when I add or remove items. I want to be able to emit events when elements of the collection have been changed
Was this page helpful?
I am trying to create List that can perform an action whenever I make a change to it. - C#