Delegate instance allocation with method group compared to
问题 I started to use the method group syntax a couple of years ago based on some suggestion from ReSharper and recently I gave a try to ClrHeapAllocationAnalyzer and it flagged every location where I was using a method group in a lambda with the issue HAA0603 - This will allocate a delegate instance . As I was curious to see if this suggestion was actually useful, I wrote a simple console app for the 2 cases. Code1: class Program { static void Main(string[] args) { var temp = args.AsEnumerable();