倒叙筛除list

for(int i=list.Count-1;i>=0;i--)
{
   if(list[i])
  {
    list.RemoveAt(i);
  }
}
posted @ 2015-09-08 10:45  pengde  阅读(143)  评论(1编辑  收藏  举报