Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding Composition
Message
From
08/08/2007 13:36:59
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
08/08/2007 13:18:43
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01246826
Message ID:
01246834
Views:
20
>Hi All,
>
>
>+-----+ 1      1..* +-----+
>|  A  |<>-----------|  B  |
>+-----+             +-----+
>
>
>Does anybody know how to write in C# the association depicted above?
>
>Consider that the diamond should be filled to denote composition. When the application runs, it could has unpredictably, from 1 to 300000 instances of class B.
>
>
>Thanks in advance.

I'm not exactly sure what you want, but couldn't you just make a collection class of B as a property of class A?
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform