As other posters have noted, you can use List<T>.ForEach
.
However, you can easily write an extension method that allows you to use ForEach on any IEnumerable<T>
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
{
foreach(T item in source)
action(item);
}
Which means you can now do:
myList.Where( ... ).ForEach( ... );