Use the composite pattern. http://www.dofactory.com/Patterns/PatternComposite.aspx
Damon Squires MCSD.NET MCDBA MCAD SCJP -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of John Lomnicki Sent: Thursday, June 10, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] HowTo Define a Business Objects Parent Property I want to develop business objects so we can reference a .Parent property. I would really like my business object to be able to call something like: int x = bo.Parent.myValue How would I code my business object to reference the parent object? Many Thanks, John Lomnicki =================================== This list is hosted by DevelopMentor(r) http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com