I just found out about a C# source code analysis tool from Microsoft called StyleCop. You can download it from code.microsoft.com.
The tool’s description is as follows:
StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project.
For all the details on the tool, check out the team’s blog that wrote it at http://blogs.msdn.com/sourceanalysis/.