Skip to content

Sick of picking the wrong CIL Emit overload? Look no further.

License

Notifications You must be signed in to change notification settings

Nihlus/StrictEmit

Repository files navigation

StrictEmit

Join the chat at 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<InstructionEffect>.

Installing

Get it on NuGet.

About

Sick of picking the wrong CIL Emit overload? Look no further.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published