94

I like style guide used by google for c++, published here . Is there any similar style guide available for c# also? I'm looking for more of good practices along with simple things like naming just like in google style guide for c++.

asked Jan 13, 2011 at 8:49
0

5 Answers 5

98

I've been creating one for my development team by combining parts of all the good / great ones that I've been able to find. Here are links to the ones I am using...

Microsoft - Design Guidelines for Class Library Developers - http://msdn.microsoft.com/en-us/library/ms229042.aspx

SubMain C# / VB.NET Coding Guidelines - http://submain.com/products/guidelines.aspx

DotNetSpider - C# Coding Standards and Best Programming Practices - http://www.dotnetspider.com/tutorials/BestPractices.aspx

Microsoft – C# Programming Guide - http://msdn.microsoft.com/en-us/library/67ef8sbd.aspx

Phillips Medical Systems - Coding Standard C# - http://www.tiobe.com/content/paperinfo/gemrcsharpcs.pdf

[Dead links removed]

answered Jan 14, 2011 at 20:45
Sign up to request clarification or add additional context in comments.

1 Comment

Interesting. Some links are dead.
20

Microsoft has finally published C# Coding Conventions used to develop documentation.
For naming conventions and design guidelines refer to Framework Design Guidelines by Microsoft.

answered Dec 1, 2013 at 15:45

Comments

8

I have found IDesign to be one of the most comprehensive coding standards documents around. It covers things like naming conventions and other best practice elements. You can download a copy from here: IDesign C# Coding Standard

kiritsuku
53.4k19 gold badges118 silver badges136 bronze badges
answered Jan 13, 2011 at 8:59

2 Comments

Just a question about IDesign: I clicked the link and the web page is asking me for my email along with a captcha. Looks kind of fishy to me. Is this how the web page is usually structured?
for anyone else who comes here: just use a mailinator email address and download the zip file with pdfs
6

You may want to have a look at StyleCop.

Wai Ha Lee
8,856102 gold badges61 silver badges100 bronze badges
answered Jan 13, 2011 at 8:54

Comments

2

See if ICSharpCoding guideline helps you. Otherwise if you are telling that you liked Google's C++ guideline, you can adopt it. Main point is that entire team is agreeing to it and following it.

answered Jan 13, 2011 at 8:57

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.