I have a list like this:
List<Tuple&l开发者_运维技巧t;int, int, int>> list = new List<Tuple<int, int, int>>();
Now I need to remove all the Tuple's in the list with a certain Item1 and Item3, but it doesn't matter what Item2 is.
I have no clue how to acchief this.
Can anyone help me? Thanks!
list.RemoveAll(t => t.Item1 == cond1 && t.Item3 == cond3);
精彩评论