Information générale
Titre:
Objects in a collection
I've started using collection classes to hold multiple objects. I would either like to get the objects in the collection to inherit properties of the collection class when they are Added to the collection, or be able to reference the properties of the collection class from the object in the collection. The objects in the collection are "owned" by the collection class in the way they are by a container class so I can't use the Parent designation. Is there any easy way to reference methods and properties of the collection from the collection's objects?
Thanks.
Rick Grinter
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement