References between objects
Hello everybody,
i'm new to c# and have to deal with the following problem:
i want to create objects containg data that comes from a sql-database.
so far everything works fine.
the problem is that i don't know how the created objects could link each other, or in other words: how the objects can refer each other.
For example i could have an object of a class "person" and have at least one object of the class "car", and would like to have a reference from the person to every car the person has got, but WITHOUT using a member variable.
Has anyone an idea how to do that?
Thank you,
rabbit

S_Kiryazov143 reputationPosted Sep 14, 2004, 7:11 AM EDT
huch8 reputationPosted Sep 15, 2004, 2:48 AM EDT
S_Kiryazov143 reputationPosted Sep 15, 2004, 5:10 AM EDT
huch8 reputationPosted Sep 16, 2004, 12:01 AM EDT