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
Post a Comment