Naming Conventions for .NET / C# / WPF Projects

隐身守侯 提交于 2019-12-03 10:34:23

问题


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



来源:https://stackoverflow.com/questions/2846805/naming-conventions-for-net-c-sharp-wpf-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!