C#_Overview

C# keywords

To help the compiler interpret the code, certain words in C# have a special status and meaning, they become keywords. No new reserved keywords were introduced after C# 1.0, but in subsequent versions some constructs used contextual keywords, which are meaningful in certain places and meaningless in others.

Although rare, the "@" prefix can be used as an identifier. In Microsoft's sights, there are 4 more undocumented reserved keywords: __argkust, __makeref, __reftype, __refvalue. They are only required in rare interoperability situations.

identifier

As in other languages, C# identifiers identify constructs coded by the programmer. In the code below both HelloWorld and Main are identifiers.

class HelloWorld
{
    static void Main()
        {
        }
}    

nomenclature

Pascal case (PascalCase): require the first letter of each word of the identifier to be capitalized

camel case (camel): except the first letter is lowercase, other conventions are the same.

Guess you like

Origin blog.csdn.net/ashmoc/article/details/121235857