6
Vote

ObjectContainerDataSource should skip ReadOnly properties

description

Currently when ObjectContainerDataSource (OCDS) builds an instance of the bound type, if that type has readonly properties, and these properties are being data bound, an exception is thrown. This means that the author of a type is forced to make every property for that type read-write just to facilitate data binding with the OCDS. A developer is no longer able to express the constraint that a property should be readonly.
 
Therefore OCDS should be modified to skip readonly properties when building instances of the bound type rather than throw an exception.

comments

christianacca wrote Oct 21, 2007 at 10:35 PM

I made very minor changes to the source for the ObjectContainerDataSource on my machine to support this work item - so far this looks like viable solution.

blankers wrote Oct 25, 2007 at 2:25 AM

please share your fix