C# List<> 删除

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

int cl = l.RemoveAll(x => { return x.Contains("A"); });
原文地址:https://www.cnblogs.com/iack/p/3541814.html