Generic Enumerating Csla BusinessListBaseGeneric Enumerating Csla BusinessListBase
Old forum URL: forums.lhotka.net/forums/t/4308.aspx
Kenneth posted on Wednesday, February 06, 2008
Hi,
I have a small section of the app I'm working on that I require some assistance with.
Basically its just a user control that I send a NameValueListBase & 99% of the time a BusinessListBase
My issue is trying to figure out what interfaces/classes to reference/cast as while trying to enumerate through the BusinessListBase as it requires hardcoded type.
foreach(Csla.Core.IBusinessObject bObject in (Csla.BusinessListBase<Csla.BusinessListBase,Csla.Core.IEditableBusinessObject>) _assignableList)
This is sort of the end result that I'm hoping to achieve where I loop through the generic list and then use reflection to get the correct property.
Thanks for looking.
Copyright (c) Marimer LLC