Thanks to Lutz Roeder's kick ass tool Reflector, I was able to able to salvage about 5 hours worth of work (not to mention my sanity). While using VS.NET today, I created a new class library and preceded to move classes from one project to another via the Solution Explorer. Well, that was my first mistake.
After moving the primary class in the project (ConnectionManager.cs), I right clicked the Class1.cs stub class VS.NET adds automatically and choose delete. Sometime after that, VS.NET decides to select ConnectionManager.cs for me, and prompt me to delete that file! Mistake number 2: not paying attention to a dialog box that reads “ConnectionManager.cs will be deleted permanently”. Before I fully comprehended that statement, I pressed the space bar, which promptly deleted my primary class file! BTW, it skipped the recycle bin!
So, during my 30 minute long rant about how screwed I was, Brenton says “Go grab reflector and decompile the .exe that class used to be in”. Genius! I forgot about Reflector. I went to Lutz's site --> grabbed reflector --> unzipped it --> decompiled the .exe --> pasted the code into my project and... BAM! I had my work back.
Thanks Lutz! Great tool!
B.T.W. If you've never used Reflector, this only covers about 10 percent of its functionality!