link中这样两种写法有什么区别?
问题描述:
var query = from x in table select x;
foreach (var item in x)
{
...
}
foreach (var item in table)
{
...
}
答
两种写法一样,而且性能也一样