While writing code similar to the following lines, ReSharper suggested the “Replace With Method Group” Refactoring for Line 2.
1: var names = Directory.GetFiles(@"c:\Program Files").ToList();
2: names.ForEach(n => Console.WriteLine(n));
The Method Group shorthand is usually found in places where you take the following code
myButton.Click += new EventHandler(myButton_Click);
and replace it with this.
myButton.Click [...]










