Moose Pickard

Moose Pickard

  • NA
  • 64
  • 70.4k

What collection type should I use?

Sep 15 2010 9:26 AM
Hey

I'm starting my project with C#.
This is my first one, so the question problably is something easy.

I have a list of cars, which I can lend out.
I want to use a list here for keeping the info about how many cars and which cars are lent out.
But I think it needs to be multidimensional, for example:

lent car, Owner, when, etc
Porsche, Jack, 2010, ...
Lada, Owen, 2001, ...
Wolkswagen, Mia, 2005, ...

What collection type should I use, can lists be multidimensional?
Or should I use List as the main type and insert arrays as individual positions?

Thanks


Answers (10)