Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nihlus/strictemit
Sick of picking the wrong CIL Emit overload? Look no further.
https://github.com/nihlus/strictemit
Last synced: 20 days ago
JSON representation
Sick of picking the wrong CIL Emit overload? Look no further.
- Host: GitHub
- URL: https://github.com/nihlus/strictemit
- Owner: Nihlus
- License: gpl-3.0
- Created: 2018-02-13T23:17:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-06T15:18:46.000Z (7 months ago)
- Last Synced: 2024-10-11T00:51:25.005Z (about 1 month ago)
- Language: C#
- Size: 166 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
StrictEmit
==========
[![Join the chat at https://discord.gg/fDy5Vhb](https://img.shields.io/badge/chat-on%20discord-7289DA.svg)](https://discord.gg/fDy5Vhb)StrictEmit is a small library that improves the API of the `ILGenerator` class, adding properly typed extensions and
overloads for every CIL instruction, along with inline XML documentation for them.This stands in contrast to the typical `ILGenerator::Emit` method, which allows the developer to emit invalid IL
instructions by using the incorrect overload.Furthermore, the library provides builtin instruction optimization, picking the best instruction for those calls which
have optimized versions for certain conditions (`Ldarg` with indexes 0-3, etc).All extension methods follow the naming pattern of `Emit`.
## Installing
Get it on [NuGet][1].[1]: https://www.nuget.org/packages/StrictEmit