简体   繁体   English

Studio C#的标准命名约定文档?

[英]standard naming convention document of Visual Studio C#?

Where is the standard naming convention document of Visual Studio C#. Visual Studio C#的标准命名约定文件在哪里。 net? 净?

I want naming convention document for variables, functions/methods and form controls for C#. 我想为C#的变量,函数/方法和表单控件命名约定文档。

Please see Klaus' and Fredrik's answers for good online resources. 请参阅Klaus和Fredrik的答案以获得良好的在线资源。 This is just to add: A good source for naming conventions and design guidelines in general for .NET can be found in the book Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries . 这只是补充:可以在《 框架设计指南:可重用.NET库的约定,惯用语和模式》一书中找到有关.NET的常规命名约定和设计指南的良好资源。

The nearest thing to what you are asking for should be the Design Guidelines for Developing Class Libraries , which features some naming guidelines . 与您要求的最接近的应该是“开发类库设计准则” ,其中包含一些命名准则 Note that these guidelines deal only with names that are visible "from the outside". 请注意,这些准则仅处理“从外部”可见的名称。 It does not discuss what to call internal parts of your code, such as private fields or local variables. 它不讨论如何调用代码的内部部分,例如私有字段或局部变量。

The Encodo book provides some good best practise guidelines Encodo书提供了一些良好的最佳实践准则

Can be found here 可以在这里找到

http://code.msdn.microsoft.com/encodocsharphandbook http://code.msdn.microsoft.com/encodocsharphandbook

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM