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
- Host: GitHub
- URL: https://github.com/sergio0694/reflectiontoil
- Owner: Sergio0694
- License: mit
- Created: 2019-09-20T17:29:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T20:33:04.000Z (about 6 years ago)
- Last Synced: 2025-04-19T14:12:20.129Z (6 months ago)
- Topics: csharp, dotnet, dotnet-standard, dotnetcore, reflection
- Language: C#
- Homepage:
- Size: 39.1 KB
- Stars: 30
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).
### 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.