Moose Pickard

Moose Pickard

  • NA
  • 64
  • 70.4k

Selecting an object from a List

Sep 30 2010 5:30 PM
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)