但在这一行代码中,红色波浪线表示错误,消息如下: cannot convert system.collections.generic.List<anonymous> to system.collections.generic.List下面是我希望返回匿名类型的列表类型的属性 public class HomeModel public List<BookModel> PopularBooks { get; set; }public List<BookModel>
我无法将List<string>转换为List<myEnumType>。我也不知道原因?string Val = it.Current.Value.ToString(); // works well here
List<myEnumType> ValList = new List<myEnumType