You’re printing cars
– the collection – instead of car
– the current iteration.
Change it to Console.WriteLine(car);
.
1
solved How to properly print the content of a list in C#
You’re printing cars
– the collection – instead of car
– the current iteration.
Change it to Console.WriteLine(car);
.
1
solved How to properly print the content of a list in C#