1/20/2026
•
EN
Making foreach on an IEnumerable allocation-free using reflection and dynamic methods
Explains a technique using reflection and dynamic methods to eliminate allocations when using foreach on an IEnumerable<T> in C#.