当前位置: 代码迷 >> ASP >> 哪位高手能解释下这条语句
  详细解决方案

哪位高手能解释下这条语句

热度:103   发布时间:2012-03-26 15:46:55.0
谁能解释下这条语句?
var item = from MenuItem it in menu.Items where it.Value == subId select it;

谁能详细点解释下这条语句,拆分成小部分的说,thank you

------解决方案--------------------
from MenuItem -- 数据源

it in menu.Items -- 定义一个变量 it,it是指向menu.Items

where it.Value == subId --条件

select it; --符合条件的就选择。
  相关解决方案