1
Reply

Selecting an object from a List

Moose Pickard

Moose Pickard

Sep 30 2010 5:30 PM
8.3k
Hi

 I have a list:
 public List<Car>Cars = new List<Car>();
I want to create a method which could select a Car object from the list, and change it's properties. 
For example I want to rename the mileage.
 Car.mileage = 1000;
 How can I change the properties of the a Car inside a List?

Thanks

Answers (1)