Created
March 1, 2018 20:18
-
-
Save mattifestation/59b14777c287d1d1a1a189e37edca4a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${π€·} = New-Object Reflection.Emit.DynamicMethod('π©', [UInt32], @([UInt32], [UInt32])) | |
${π€} = ${π€·}.GetILGenerator() | |
@(@(2, 275120805),@(3, 275120805),@(88, -261739867),@(42, 23440101)) | % { | |
${π€}.Emit([Activator]::CreateInstance([System.Reflection.Emit.OpCode], [Reflection.BindingFlags] 'NonPublic, Instance', $null, @(($_[0] -as [System.Reflection.Emit.OpCode].Assembly.GetType('System.Reflection.Emit.OpCodeValues')), $_[1]), $null)) | |
} | |
${π©} = ${π€·}.CreateDelegate([Func``3[UInt32, UInt32, UInt32]]) | |
${π©}.Invoke(2,3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment