IBusinessObject
Old forum URL: forums.lhotka.net/forums/t/51.aspx
xal posted on Tuesday, May 09, 2006
Sorry if this is in the book (which I'm waiting for impatiently), but why do we have an IBusinessObject if it's empty?
Is it because of possible future enhancements? Or just cheating to simplify type checking?
Andrés
Vaxman2 replied on Tuesday, May 09, 2006
I just got my VB book today! :)
It appears the paraphrased answer (from page 97) is that since both read-only and editable objects use the interface, it has no common behaviours. But it is useful for detecting whether an object is a business object..
BTW, Thank you Rocky for the great index for the book!
RockfordLhotka replied on Wednesday, May 10, 2006
In the short term the reason is to overcome the lack of polymorphism with generics. In the longer term I do think you'll see the interface gain some members. Interestingly enough though, there are relatively few common behaviors across all business objects - at least not ones that are (or should be) public.Copyright (c) Marimer LLC