Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding Composition
Message
De
08/08/2007 13:36:59
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
08/08/2007 13:18:43
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01246826
Message ID:
01246834
Vues:
21
>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/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform