What is the best way to approach removing items from a collection in C#, once the item is known, but not it\'s index. This is one way to do it, but it seems inelegant at be
If RoleAssignments is a List you can use the following code.
List
workSpace.RoleAssignments.RemoveAll(x =>x.Member.Name == shortName);