2 Replies - 336 Views - Last Post: 29 November 2012 - 06:12 PM Rate Topic: -----

#1 Narkotix  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 14-November 12

How to access objects in linked list

Posted 26 November 2012 - 06:51 PM

For example I have a list of cars, having colours, year, price, etc. to describe these cars, and they are all objects under a class called "Cars". I have a separate class called "CarsList" and this is where I deal with the list of objects. How would I be able to communicate between the two classes if Cars and CarsList are in different .cs files?


Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: How to access objects in linked list

#2 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1012
  • View blog
  • Posts: 2,444
  • Joined: 04-October 09

Re: How to access objects in linked list

Posted 26 November 2012 - 06:55 PM

Cars shouldn't know about CarsList. CarsList can just use the Cars object as long as they are in the same assembly, or you have included a reference to the containing assembly.
Was This Post Helpful? 2
  • +
  • -

#3 Narkotix  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 14-November 12

Re: How to access objects in linked list

Posted 29 November 2012 - 06:12 PM

Thank you
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1