An open API service indexing awesome lists of open source software.

https://github.com/sergio0694/reflectiontoil

A demonstration and benchmark of different approaches to load closure fields using reflection and dynamic code generation
https://github.com/sergio0694/reflectiontoil

csharp dotnet dotnet-standard dotnetcore reflection

Last synced: 4 months ago
JSON representation

A demonstration and benchmark of different approaches to load closure fields using reflection and dynamic code generation

Awesome Lists containing this project

README

          

# 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"**](https://medium.com/@SergioPedri/optimizing-reflection-with-dynamic-code-generation-6e15cef4b1a2).

Medium blog post

### 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.