I was wondering if, using reflection, I could make changes to the codefile / portable executable at runtime, and have them saved. So technically the executable is saving changes to itself. I have and am doing this by having two executable, one just simply reads the bytes of another, edits, rearranges them and overwrites. I was just wondering if there is a clever reflection option, using .Net? If not, do any other languages that run on windows have this feature? I’ve heard a lot of good things about Ruby. If youre interested, the goal is to have have my own custom database class compiled into my exe, as my programs database.
Share
Here is a youtube video of a Ruby script in action which rewrites itself. By Yusuke Endoh; there is more.