I hope the .NET developers are enjoying with C# 3.0 lambda expressions. This is one of the easiest way for removing items from the generic list object based on a condition.

_sessionList.RemoveAll(x => x.MarkforRemoval == true);

The above code removes all the items marked for removal. This also avoid the error “Collection was modified; enumeration operation may not execute” if you are checking the conditions in the foreach loop and removing it.

Quick snippet, hopefully useful.