List<string> list = new List<string>(){"A","B","C","D"};List<string> list2 = new List<string>(){"A","B"};
现在我要移除list中所有在list2中出现过的元素,
而且要把余下的元素每个都要做一个处理,
比如每个都加一(+1)啦等等
用LINQ写
或者“蓝不大“表达式也行^
strList.Except(list2 ).ToList()
var list3 = (from p in list where ! list2.Contains(p) select p).ToList ();
list = list.Where(str => !list2.Contains(str)).ToList();