I have a popuplated IEnumerable collection.
IEnumerable
I want to remove an item from it, how can I do this?
foreach(var u in users) {
Not removing but creating a new List without that element with LINQ:
List
// remove users = users.Where(u => u.userId != 123).ToList(); // new list var modified = users.Where(u => u.userId == 123).ToList();