I've seen a lot of posts on Stackoverflow containing decompiled source-code from the .NET framework (typically produced by a tool such as .NET Reflector). I've posted such code myself in answers, to highlight certain internal behaviours / implementation details of the framework.
Now, I recently saw such a post (from someone else) being downvoted and chastised for "showing dissembled proprietary code on a public forum like SO", and that got me slightly worried about potential legal problems. I know parts of the source-code have been released by Microsoft, but I know little about their associated licensing arrangements. In addition, it's possible that posting decompiled code is a different kettle of fish altogether.
Are there any potential legal / ethical issues here?