Previous Page
Next Page

Using Identifiers

Identifiers are the names you use to identify the elements in your programs. In C#, you must adhere to the following syntax rules when choosing identifiers:

For example, result, _score, footballTeam, and plan9 are all valid identifiers, whereas result%, footballTeam$, and 9plan are not.

IMPORTANT
C# is a case-sensitive language: footballTeam and FootballTeam are not the same identifier.

Previous Page
Next Page