C# Foreach statement does not contain public definition for GetEnumerator

后端 未结 4 1576
孤街浪徒
孤街浪徒 2021-02-07 00:33

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

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 00:48

    In foreach loop instead of carBootSaleList use carBootSaleList.data.

    You probably do not need answer anymore, but it could help someone.

提交回复
热议问题