13 useful Coding Guidelines documents for C# Developers

I was recently reading a book “Encodo C# Handbook” that includes the guidelines on naming for C# etc …

There are quite a few coding standard documents available and here i list few of thems which i came across .

Although you might find many documents , the key here is to follow guidelines and implement them which is important when working in Teams .

Here are the list of C# Coding Guidelines document

  1. Microsoft’s All-In-One Code Framework Coding Guideline
  2. Design Guidelines for Developing Class Libraries – New one for .NET Framework 4 – You can also find the above document for the earlier versions of Framework in MSDN .
  3. C# Coding Standards document by Lance Hunt – pretty old but should be useful
  4. Coding Guidelines for CSharp 3.0 and 4.0 by aviva Solutions – The downloads here includes the coding guidelines , Visual Studio 2010 rule sets and ReSharper 5 Code Style
  5. Philips Healthcare – C# Coding Standard
  6. Encodo C# Handbook
  7. .NET/SQL/TFS Code & Application Design by SSW - This includes not just for C# but also for SQL Server , Project Management etc .
  8. SharpDevelop C# Coding Style Guide 0.3 by Mike Kruegar
  9. C# Coding Guidelines by Validio Software
  10. The IDesign C# Coding Standard, for development guidelines and best practices
  11. C# Coding Guidelines by agamura
  12. C# Coding Standards and Best Programming Practices by DotnetSpider
  13. Book : Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (2nd Edition)Microsoft .NET Books)

Do you use the documents anything else apart from the above one’s ? , feel free to add them in the comment section .

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
Like it? Share it!

6 Comments so far. Feel free to join this conversation.

  1. Daniel Marbach April 30, 2011 at 4:09 pm - Reply

    Hy
    We are using Microsoft StyleCop in our team. This makes thinking about Coding Guidelines obsolete ;)

    Daniel

  2. Javin May 1, 2011 at 8:31 am - Reply

    good collection of links , I am looking for such links written for Java programmers now.let us know if any one come across.

    Javin

  3. Jonathan Allen May 3, 2011 at 10:08 am - Reply

    In my mind Stylecop is a pale imitation of FxCop. Most of the rules that it has are pointless and some are downright counter-productive. I wouldn’t consider using it again without the use of heavy customization.

  4. Patrick Smacchia October 18, 2011 at 2:22 pm - Reply

    Have you tried rules for .NET code provided by NDepend?
    http://www.ndepend.com/Features.aspx#CQL

    • Senthil Kumar October 18, 2011 at 7:44 pm - Reply

      @Patrick . I have heard of it but not used it … WIll give a try though :)

Leave A Response