Skip to main content

Posts

Showing posts with the label ReadOnlyCollections

ReadOnlyCollection<T> meets BindingList<T>...

Okay my first post and I was going to jump right in and try a fill a gap in the blogging worlds knowledge about having a read only collection that supports notifications of modifications to collection members when programming in .Net - what happens when  ReadOnlyCollection<T> meets BindingList<T> ?  The simple answer to that question is ReadOnlyObservableCollection<T>  in version 3.0 or higher - it provides the exactly functionality I require and gets away from the awful 'Binding' prefix name which has to much association with 'Data Binding' in the MS world. But in version 2.0 you don't have a such a luxury :). This is really the sub-text of this post and the problem I'm trying to solve - How can I observe events on a domain entities (including collections) when implementing Domain Driven Design in a winforms environment that utilises an MVC(P) pattern ? If you don't know much about Domain Drive Design check the out website and for a gre...