>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?