I'll occasionally do this on homework dump questions where the answers are equally bad code-dumps.
A code-only answer to a homework question helps no one, and I say so; but don't post my own answer because the question was unclear; or because I don't want to do the OPs homework.
In general, my critiquing of a post doesn't mean I know the answer; or even would answer (in the homework case). That doesn't stop me from knowing when something is crap though.
Side note: This approach can work! Just today this happened: http://stackoverflow.com/questions/27000657/c-sharp-windows-form-how-show-1line-2-text-box/27001057#comment42533103_27001057 and the posters improved their content (I deleted the comments as they were obsolete).