Why does list.ForEach(hashCode.Add) leave a C# HashCode unchanged when a lambda works?
System.HashCode is a mutable struct, so the method group hashCode.Add boxes a copy of it into the delegate and every Add lands in that box, not in your local. IL for the method group vs the lambda's closure, the same trap with TagList, List<T> indexers and readonly fields, and the fixes, verified on .NET 10.0.10 and .NET 11.0.0.