Student类
internal class Student
{
public int id { get; set; }
public string name { get; set; }
public List<int> scoreList { get; set; }
}
实现对有成绩是85分以上的学生查询
var newlist = from Student in stuList
from score in Student.scoreList
where score > 85
select Student; //stuList是Student的List集合