0
我無法泛型列表分配給ViewBag:泛型列表不顯示在ViewBag
var m = from i in Enumerable.Range(0, 12)
let now = DateTime.Now.AddMonths(i)
select now.ToString("MMMM") + " " + now.Year.ToString();
ViewBag.b = m;
我得到這個當我看到ViewBag值:
System.Linq.Enumerable.WhereSelectEnumerableIterator<int,string>