Provide API to read and write raw method bodies #46
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We need an API to parse and emit code without creating costly Instruction instances.
For the reading part, we would move the ILParse functionality from Cecil.Rocks to Cecil.
For the writing part, we would need a context to store the operands to be mapped to actual tokens.
Any news on this?
I find myself needing this for an experimental custom IL I'm working on. Modifying all of Cecil to support it would be a bit much since all I really need is just to be able to emit raw bytes, tokens, constants, etc into the IL stream.
@jbevain is this just a performance/syntax improvement?
@alexrp i think you can do all those things now. What exactly dont you think is possible?
No. It is about stuff like
.emitbytein ILAsm.I see no methods anywhere that allow me to write arbitrary data into the IL stream.