System.Collections.Generic.IEnumerable' does not contain any definition for 'ToList'

前端 未结 5 2069
礼貌的吻别
礼貌的吻别 2020-12-05 09:21

Here is the problem. I am getting IEnumerable from ViewPage and when I tried it to convert List it is showing me error like:

\'System.Collection

5条回答
  •  时光说笑
    2020-12-05 09:52

    An alternative to adding LINQ would be to use this code instead:

    List paxList = new List(pax);
    

提交回复
热议问题