Using Identifiers on C#

by Administrator 18. May 2009 16:58

Identifi ers are the names you use to identify the elements in your programs, such as
namespaces, classes, methods, and variables (you will learn about variables shortly). In C#,
you must adhere to the following syntax rules when choosing identifi ers:
  * You can use only letters (uppercase and lowercase), digits, and underscore characters.
  * An identifi er must start with a letter (an underscore is considered a letter).
For example, result, _score, footballTeam, and plan9 are all valid identifi ers, whereas result%,
footballTeam$, and 9plan are not.

Important C# is a case-sensitive language: footballTeam and FootballTeam are not the same
identifi er.

Tags:

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

Each morning when I open my eyes I say to myself: I, not events, have the power to make me happy or unhappy today. I can choose which it shall be. Yesterday is dead, tomorrow hasn’t arrived yet. I have just one day, today, and I’m going to be happy in it

Month List

Page List