.NET Ramblings
open-menu closeme
Home
Videos
Feeds
About
Contribute
github linkedin
  • Making foreach on an IEnumerable allocation-free using reflection and dynamic methods

    calendar Jan 20, 2026 ยท andrewlock.net
    Making foreach on an IEnumerable allocation-free using reflection and dynamic methods

    In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free Link to article: https://andrewlock.net/making-foreach-on-an-ienumerable-allocation-free-using-reflection-and-dynamic-methods/


    Read More

.NET Ramblings

Copyright  .NET RAMBLINGS. All Rights Reserved

to-top