C# List<> 删除

List<string> l = new List<string>() { "A1", "A2", "A3", "B1", "B2", "B3" };

int cl = l.RemoveAll(x => { return x.Contains("A"); });

 

posted on 2014-02-09 19:35  iackjee  阅读(232)  评论(0编辑  收藏  举报

导航