This was just too good (or bad) not to blog about. We found this gem today...
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design",
"CA1024:UsePropertiesWhereAppropriate")]
public static string GetSiteMapsKey()
{
return "sm:all";
}
That's right... it's such a wrong thing to do, and they knew it, that they made it so no code analysis tool would catch it and warn them they were being stupid. Awesome.
No comments yet.