开发者

Why Main() not main() in C#?

开发者 https://www.devze.com 2023-03-15 19:32 出处:网络
In C, C++, JAVA we use main(), but in C# Main() Why main() method is changed to Main() in C#? Is there any strong reason behind this?

In C, C++, JAVA we use main(), but in C# Main()

Why main() method is changed to Main() in C#?

Is there any strong reason behind this?

开发者_运维问答

Eager to know this.


Because the naming conventions in C# recommend first letter of a method name to be capitalized (in fact, they recommend Pascal casing).


Naming conventions are different in C#


C# methods and properties tend to be capitalize while variables tend to have lower case first letters followed by bumpy case.

0

精彩评论

暂无评论...
验证码 换一张
取 消