Jump to content
Xtreme .Net Talk

Who can figure out what problem this program solves?


Recommended Posts

Posted (edited)

LOL, I feel like I'm on Jeopardy! You give the answer and we have to give the question??

 

"What is..."

 

Now I cheated, that is I used a Reflector (I was a bit afraid to "just run" an EXE). I guess forum rules here discourage but not forbid EXE submissions... Anyway, not as dangerous in .Net as you can look at the code first.

 

Anyway, should I answer, or is that "cheating" by your rules?

 

By the way, you should add a Console.ReadLine() at the very end to keep the code from just "running out". There was litterally nothing for me to see when I tried to run it...

 

Fun idea, maybe the Jeopardy! thread will become a staple in the Random Thoughts area?

Edited by Mike_R

Posting Guidelines

 

Avatar by Lebb

Posted
No, I expected you to use a Reflector. You can run command first and then the program to see the output. Do you know what problem this program solves?
  • *Experts*
Posted

Maybe post the MSIL next time instead of the EXE? I worry that someone may post something malicious and say "Well you should have used the reflector to see that I was going to format your hard drive".

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted
Might be a stupid question, but what is a reflector???

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

-- Rick Cook, The Wizardry Compiled

Posted

A Reflector takes an IL Disassembly one step "higher". That is, it decompiles the IL to Source code. What's neat about it is that you can look at code originally written in C# and then Reflect it back as VB.Net code, or vice-versa.

 

The term is "Reflector" because the program is using .Net Reflection to read the Metadata to get the overall structure of the compiled assembly. It is then taking the next step of reverse-compiling the IL to either C# or VB.Net, usually. (This last step is reverse-compiling, not really reflection.)

 

Lutz Roeder's Reflector is free and I find it really very, very good. It's listed on his website along with some other very nice looking apps as well: http://www.aisto.com/roeder/dotnet/

 

It's not a perfect reverse-assembly, but I find it pretty darn good. It's also an easier way to look at the IL code than is the ILDASM utility. The IL is the same, of course, but navigating the Assembly is actually easier...

Posting Guidelines

 

Avatar by Lebb

Posted

Thanks Mike,

 

Will give it a go.

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

-- Rick Cook, The Wizardry Compiled

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...