开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜