Say that I have LINQ query such as:
var authors = from x in authorsList where x.firstname == \"Bob\" select x;
Simple solution:
static void Main() { List myList = new List { "Jason", "Bob", "Frank", "Bob" }; myList.RemoveAll(x => x == "Bob"); foreach (string s in myList) { // } }