c# - Why is .NET ObservableCollection<T> implemented as a class and not an interface? -


in reading observer design pattern, noticed implemented using interfaces. in java, java.util.observable implementation class. shouldn't c# , java versions use interfaces ?

scott

well, implements inotifycollectionchanged , inotifypropertychanged. however, interestingly, doesn't implement new iobservable<t> interface .net 4.0, might have expected.

it arguably useful there generic form of inotifycollectionchanged... don't know of one.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -