8,492
社区成员
发帖
与我相关
我的任务
分享
我也要分
var query = from ele in xElement.Elements("Device")
where ele.Element("DeviceName").Value.StartsWith("VD")
select ele;
var query = from ele in xElement.Elements("Device")
where ele.Element("DeviceName").Value.StartsWith("VD1")
select ele;
刚想回复contains方法 看见2楼算了 楼主是不是没有看过专门讲解的LINQ的书啊?