I\'m having a problem with a Windows Form application I\'m building in C#. The error is stating \"foreach statement cannot operate on variables of type \'CarBootSale.CarBootSale
Your CarBootSaleList class is not a list. It is a class that contain a list.
CarBootSaleList
You have three options:
Make your CarBootSaleList object implement IEnumerable
IEnumerable
or
make your CarBootSaleList inherit from List
List
if you are lazy this could almost do the same thing without extra coding
List>