why no Get/SetProperty on BusinessListBase?

why no Get/SetProperty on BusinessListBase?

Old forum URL: forums.lhotka.net/forums/t/10134.aspx


Brannon posted on Saturday, March 05, 2011

Why does the BusinessListBase not have GetProperty or SetProperty methods? Do we expect that if I needed such a thing I would use BusinessBase and have a property on there that returned a collection? 

JonnyBee replied on Saturday, March 05, 2011

Yes, and it is (so far) a legacy from Windows Forms DataBinding where a BindingSource could not understand a property on a list object.

 

 

RockfordLhotka replied on Sunday, March 06, 2011

And Web Forms, and really ASP.NET MVC - none of Microsoft's UI technologies expect a collection to be anything more than a rich enumerated list. None of them expect that properties will exist on a list or collection, so they have no provision for interacting with those properties.

XAML is the first exception to this rule, and even in this case none of the default behaviors for interacting with lists or collections assume properties will exist.

Copyright (c) Marimer LLC