ILPack icon indicating copy to clipboard operation
ILPack copied to clipboard

Support to save dynamic methods

Open AArnott opened this issue 5 years ago • 2 comments

Any chance that ILPack could add support for saving a DynamicMethod to disk in a dll form? This would help in analyzing bugs in lightweight code gen.

AArnott avatar Nov 22 '20 17:11 AArnott

Hi @AArnott, yes, it's a reasonable use-case to to support filtering the export something more granular than a whole module. Don't hesitate to submit a PR in this direction. My instinct would be to think the meta-problem of the filtered export (not just the dynamic method case). Hope it helps!

vermorel avatar Nov 22 '20 18:11 vermorel

Hi @vermorel and first of all thanks for a great library. 👍😃. When it comes to DynamicMethod I suddenly remembered a tool I have used in the past. It is called il-visualizer and it can spit out the the IL any method. Don't know if it could be relevant here, but just wanted to make sure you guys knew about it 👍😃

seesharper avatar Jun 14 '22 09:06 seesharper