Say that I have LINQ query such as:
var authors = from x in authorsList
where x.firstname == \"Bob\"
select x;
Below is the example to remove the element from the list.
List<int> items = new List<int>() { 2, 2, 3, 4, 2, 7, 3,3,3};
var result = items.Remove(2);//Remove the first ocurence of matched elements and returns boolean value
var result1 = items.RemoveAll(lst => lst == 3);// Remove all the matched elements and returns count of removed element
items.RemoveAt(3);//Removes the elements at the specified index
To keep the code fluent (if code optimisation is not crucial) and you would need to do some further operations on the list:
authorsList = authorsList.Where(x => x.FirstName != "Bob").<do_some_further_Linq>;
or
authorsList = authorsList.Where(x => !setToRemove.Contains(x)).<do_some_further_Linq>;