I'm still new to lambdas and find it hard to find out specific features for it, but is it possible to execute a method for each object in a generic list? Similar to how the ConvertAll works, but instead of converting, actually calling a method.
public class Mouse()
{
public void Squeak()
{
}
}
List<Mouse> mice = new List<Mouse>();
mice.Add(new Mouse());
mice.Add(new Mouse());
How do you call the method Squeak for each mouse?
mice.???(m => m.Squeak());