I have a Tuple<T1, T2> which contains the same object that are in a List, when adding the objects from the List<T> to the tuple I wish to remove them from the List<T>.
I am convinced that I can do this easily using Lamba & Linq:
//these objects contain some cards
List<Card> cards;
Tuple<Card, Card> ownedcards;
cards.Select(c => ownedcards); //select owned cards from card collection...
but how do I remove those selected cards? There is no Remove function that takes a list of items to remove? Do I have to use ForEach?
1 Answer