I have a class:
public class CarList { public int quantity{get;set;} public List Cars {get;set;} } public class Car { public string Name
Actually you don't need to loop through the cars collection. You just have it like
@Html.EditorFor(x => x.Cars)