c_sharp_identifiers_and_keywords

C# Identifiers and Keywords

“Identifiers are names that programmers choose for their classes, methods, variables, and so on. Here are the identifiers in our example program, in the order in which they appear:

System x Console WriteLine

“An identifier must be a whole word, essentially made up of Unicode characters starting with a letter or underscore. C# identifiers are case sensitive. By convention, parameters, local variables, and private fields should be in camel case (e.g., myVariable), and all other identifiers should be in Pascal case (e.g., MyMethod).” (Fair Use B08SYWWDTX)

“Keywords are names that mean something special to the compiler. These are two keywords in our example program, using and int.” (Fair Use B08SYWWDTX)

Most keywords are reserved, which means that you can’t use them as identifiers. Here is the full list of C# reserved keywords:

(Fair Use B08SYWWDTX)

c_sharp_identifiers_and_keywords.txt · Last modified: 2024/04/28 03:23 (external edit)