Parent child class relationship design pattern

Posted by Jeremy on Stack Overflow See other posts from Stack Overflow or by Jeremy
Published on 2010-04-13T15:45:10Z Indexed on 2010/04/13 16:03 UTC
Read the original article Hit count: 277

Filed under:
|
|

I have a class which has a list of child items. Is there a design pattern I can copy that I can apply to these classes so that I can access the parent instance from the child, and it enforces rules such as not being able to add the child to multiple parents, etc?

© Stack Overflow or respective owner

Related posts about c#

Related posts about dotnet