ILAssembler icon indicating copy to clipboard operation
ILAssembler copied to clipboard

Add ability to pass a closure

Open SeeminglyScience opened this issue 4 years ago • 0 comments

Maybe something like:

il -Closure 'test' `
   -DelegateSignature { [int]([string]) } `
   -MethodSignature { [int]([object], [string]) } `
   -Body {
       ldarg.0
       callvirt { [string] [object].ToString() }
       ldarg.1
       call { [string] [string]::Concat([string], [string]) }
       callvirt { [int] [string].get_Length() }
       ret
   }

SeeminglyScience avatar Oct 19 '20 16:10 SeeminglyScience