Naming Conventions for .NET / C# / WPF Projects

2019-03-11 16:36发布

问题:

What is a widely accepted naming convention for .NET/C#/WPF projects?

回答1:

Microsoft has an extensive MSDN article on naming conventions here.



回答2:

Here are some useful links on this subject

.Net Naming Conventions and Programming Standards - Best Practices

Naming Conventions for .NET / C# Projects

Naming Conventions & Coding Standards for .NET

Goog Luck!



回答3:

You can see Philips Healthcare - C# Coding Standard for C#

It look very good.

And of course Design Guidelines for Developing Class Libraries



回答4:

Use the tools Microsoft FxCop and Microsoft StyleCop for validation.



回答5:

Instead of listing potentially flammable conventions, I will just tell you that I follow whatever conventions FXCop suggests, with a couple of exceptions.



回答6:

your best bet would be to

(a) look at a number of FOSS .net projects (b) read Framework Design Guidelines