ReflectionToIL
ReflectionToIL copied to clipboard
A demonstration and benchmark of different approaches to load closure fields using reflection and dynamic code generation
ReflectionToIL
A demonstration and benchmark of different approaches to load closure fields. This is a companion project for my Medium post "Optimizing reflection in C# via dynamic code generation".
Project contents
The project is ready to run, and it uses BenchmarkDotNet
to execute the benchmarks: you can find more info about this by opening the Program.cs
file. The project also contains 4 different implementations of the closure loader discussed in the blog post, which are located in the \Implementations
folder.