C# List<> 删除

时间:2014-02-09 21:50:30   收藏:0   阅读:331
bubuko.com,布布扣
List<string> l = new List<string>() { "A1", "A2", "A3", "B1", "B2", "B3" };

int cl = l.RemoveAll(x => { return x.Contains("A"); });
bubuko.com,布布扣

原文:http://www.cnblogs.com/iack/p/3541814.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!