Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

In my answer to this question I originally posted some code that I copied directly from reflector after disassembling one Microsoft's .NET dlls. Shortly after a comment was posted (which has since been deleted) that it was illegal to do this and at the very least would affect the Mono team.

I understand the issues with Mono and in a case of better safe than sorry removed the code sample. But is it actually illegal to post disassembled code from a closed source project?

(In case it makes any difference the code was disassembled from System.Core and is not available in the released Microsoft source code)

share|improve this question
up vote 3 down vote accepted

It would normally depend on the EULA, and how enforcible it was in your jurisdiction. A typical clause in closed-source software is that you're not allowed to disassemble the code (and therefore publishing it elsewhere is incriminating yourself).

share|improve this answer
Looks like you are right - I read the EULA for the framework and it is an extension of the EULA for the OS that you run it on. As pointed out here (…) disassembly is specifically disallowed in the Vista EULA. I assume it is the same for all versions of Windows. – Martin Harris Sep 4 '09 at 9:28

Note that theoretically, since you must license your posts as CC-BY-SA, you should have the permission to license whatever you are posting as CC-BY-SA (it's public domain, or you are the copyright holder, or with permission from the copyright holder). It's extremely unlikely that you have such permission for posting what you need to use Reflector to see--unless what you are posting falls under fair use.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .