Skip to content

Instantly share code, notes, and snippets.

@jfmaes
Created December 21, 2020 09:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfmaes/a633b68b8737f81b2f4a31ec8f6808ec to your computer and use it in GitHub Desktop.
Save jfmaes/a633b68b8737f81b2f4a31ec8f6808ec to your computer and use it in GitHub Desktop.
Sample Reflection of the HelloFromDotNetFramework assembly for the blogpost
clear
$bytes=[System.IO.File]::ReadAllBytes("C:\Users\jeanm\source\repos\HelloFromDotNetFramework\bin\Release\HelloFromDotNetFramework.exe")
$asm = [System.Reflection.Assembly]::Load($bytes)
$params = {null}
[HelloFromDotNetFramework.Program]::Main($params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment