M
mp
I've been reading all the help files and things i can find on collection
classes.
Can't find a simple intro for beginner level example in c# that's basic
enough i can understand
any sites or tutorials you know of would be appreciated.
If I have a class MoldPart
And I have a class Mold
Mold contains (has) MoldParts
one question in my mind:
(i'm not sure if it should be aggregation or composition - i think
composition)
i don't know how that idea affects implementation in C#
I'm not sure how to give Mold a property of a "group"(collection) of
MoldParts
such that i could do things like:
For each MoldPart part1 in Mold1.MoldParts
// part1.propertysomething ...
Next
-or-
Mold1.MoldParts.Add New MoldPart part1(name)
etc
i found something on implementing IEnumerable but it was quite complex and I
don't know if I need that for the above.
thanks for any pointers
mark
classes.
Can't find a simple intro for beginner level example in c# that's basic
enough i can understand
any sites or tutorials you know of would be appreciated.
If I have a class MoldPart
And I have a class Mold
Mold contains (has) MoldParts
one question in my mind:
(i'm not sure if it should be aggregation or composition - i think
composition)
i don't know how that idea affects implementation in C#
I'm not sure how to give Mold a property of a "group"(collection) of
MoldParts
such that i could do things like:
For each MoldPart part1 in Mold1.MoldParts
// part1.propertysomething ...
Next
-or-
Mold1.MoldParts.Add New MoldPart part1(name)
etc
i found something on implementing IEnumerable but it was quite complex and I
don't know if I need that for the above.
thanks for any pointers
mark