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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -