I'm building a WPF application and while creating my domain model I used ObservableCollection<T>
.
I allowed myself to use it only because it clearly belongs to the System.Collections.ObjectModel namespace.
During execution I received an error. I found a thread in SO already deals with the problem in here: Where do I get a thread-safe CollectionView?
My question is: assuming ObservableCollection<T>
is in System.Collections.ObjectModel namespace, why does it have a user interface related limitation? Is it an architecture flaw or intended? Is it good practice to use it in domain model?