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.
精彩评论