Lost Class File after Crash, Reverse Engineer RHP file to get it back?

My computer crashed and somehow the recovery deleted the one class file that I had done a lot of work on. I have a backup not too far back, but I’m still trying to figure out if there is a way to recover the code. I have windows 8, the abomination, and didn’t have file history turned on, so that’s a no go.

The one thought I have is that I had built an RHP file, so if I could unpack that somehow (I hadn’t obfuscated it), I could retrieve the code. Does anyone know how I can do this?


I can’t help you recover your lost code. But this is a good time to lecture about version control.

Here are a couple of cloud based sites that work really well and are very affordable:


I’m sure here are others - these are two I’ve used.

– Dale

@samlochner is it RhinoCommon code? If so, I can recommend the free dotPeek tool by JetBrains. https://www.jetbrains.com/decompiler/
This will decompile a .NET assembly into readable code. It will probably not bring back comments though.

And do follow Dale’s advice and start using version control of some sort - GitHub, BitBucket to name a few. You can get private BitBucket repositories for free.

I’m rewriting my code now … you would think it would be faster the second time, but it is slower. Maybe its because of the intermittent beating of my head against a brick wall, that might have something to do with it… if anyone knows how to unpack an rhp file, please let me know so I can stop…

I will look into your suggestions.