huch

huch

  • NA
  • 8
  • 0

references between objects

Sep 14 2004 10:50 AM
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

Answers (4)