I'm still new to lambdas and don't know how to do this, but is it possible to execute a method for each object in the general list? Similar to how ConvertAll works, but instead of converting, actually calling the method.
public class Mouse() { public void Squeak() { } } List<Mouse> mice = new List<Mouse>(); mice.Add(new Mouse()); mice.Add(new Mouse());
What do you call the Squeak method for each mouse?
mice.???(m => m.Squeak());
source share