28
Given:
List<Name> names = new List<Name>(); //list full of names
public void RemoveName(string name) {
List<Name> n = names.Where(x => x.UserName == name);;
names.Remove(n);
}
What's the Lambda syntax to execute the removal?
And how can I get indication of "success" if the function did remove or not?