Using LINQ to remove elements from a List

Technology CommunityCategory: LINQUsing LINQ to remove elements from a List
VietMX Staff asked 3 years ago
Problem

Given that authorsList is of type List<Author>, how can I delete the Author elements that are equalling to Bob?

Consider:

authorsList.RemoveAll(x => x.FirstName == "Bob");