ltrzesniewski / InlineIL.Fody

Inject arbitrary IL code at compile time.
MIT License
238 stars 17 forks source link

Would these work well with InlineIL.Fody? #6

Closed dzmitry-lahoda closed 5 years ago

dzmitry-lahoda commented 5 years ago

https://gist.github.com/sakno/9689d15e11ec5a26b55d099176b81fec#proof-of-concept

https://github.com/sakno/DotNext

ltrzesniewski commented 5 years ago

I'm not really sure about what you're asking here.

InlineIL lets you write static MSIL instructions in your C# code, no more, no less. If what you need is access to the calli instruction, then yes, InlineIL gives you that. But if you need anything else than static IL code, use Reflection.Emit instead.

As to whether it would be a good fit for that library, I don't know - you should ask its author instead.