日期:2014-05-17 浏览次数:20868 次
while(Jps.Count()>0)
IEnumerable<IGrouping<string,JPropertyInfo>> Jps=
Propertys.SelectMany(u => u.Propertyies.Where(w => w.Index == n))
.GroupBy(p=>p.Property.Path);//只查询到一个结果,即Count=1
IGrouping<string, JPropertyInfo> Jpropertys = Jps.ElementAt(0);
foreach(JPropertyInfo jp in Jpropertys )
{
//Dosomething
}
List<IGrouping<string, JPropertyInfo>> listp = Jps.ToList();
listp.RemoveAll(u => u == Jps.ElementAt(0));
Jps=listp.AsEnumerable();