Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
第一个完全遵循 .NET 大写约定
The first one is right following the .NET Capitalization Conventions
第一个是 C# 中的标准,第二个是 Java 中的标准
First one is standard in C#, second is standard in Java
C# 方法通常采用 PascalCase。请参阅此处的指南。
C# Method are normally in PascalCase. See the guidelines here.
Microsoft 建议使用第一种方法。
Microsoft recommend to Use The first Approach.
Pascal 大小写 是 .NET 中的标准一般情况,特别是 C#。
Pascal case is the standard for .NET in general and C# in particular.
不要相信有一个标准,这就是你和你的同事所喜欢的。我见过的最常见的是方法的 PascalCasing 和私有变量的 Camel 等。
Don't believe there is a standard, It's what ever you, and those you work with prefer. The most common i've seen is PascalCasing for Methods and Camel for private variables etc.
.NET 命名标准规定您应该使用 Pascal 大小写:
请参阅 方法命名指南
.NET Naming standards say that you should use Pascal Case:
See Method Naming Guidelines
骆驼案例与正确案例。 C# 100% 批准的正确方式 (TM) 是后者。
Camel case vs proper case. The 100% Approved Right Way (TM) for C# is the latter.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(8)
第一个完全遵循 .NET 大写约定
The first one is right following the .NET Capitalization Conventions
第一个是 C# 中的标准,第二个是 Java 中的标准
First one is standard in C#, second is standard in Java
C# 方法通常采用 PascalCase。请参阅此处的指南。
C# Method are normally in PascalCase. See the guidelines here.
Microsoft 建议使用第一种方法。
Microsoft recommend to Use The first Approach.
Pascal 大小写 是 .NET 中的标准一般情况,特别是 C#。
Pascal case is the standard for .NET in general and C# in particular.
不要相信有一个标准,这就是你和你的同事所喜欢的。我见过的最常见的是方法的 PascalCasing 和私有变量的 Camel 等。
Don't believe there is a standard, It's what ever you, and those you work with prefer. The most common i've seen is PascalCasing for Methods and Camel for private variables etc.
.NET 命名标准规定您应该使用 Pascal 大小写:
请参阅 方法命名指南
.NET Naming standards say that you should use Pascal Case:
See Method Naming Guidelines
骆驼案例与正确案例。 C# 100% 批准的正确方式 (TM) 是后者。
Camel case vs proper case. The 100% Approved Right Way (TM) for C# is the latter.