Saturday, May 21, 2022 19:53

Table of contents >> Introduction > C# differentiates between uppercase and lowercase

C# differentiates between uppercase and lowercase

When you are writing your programs, you must remember that C# considers lowercase and uppercase characters as different. As a general rule, most C# commands start with a capital letter and continue with lower case letters. C# constants are usually written all in uppercase, while variables use a mix of upper and lower case letters.


C# differentiates between uppercase and lowecase

As you can see in the above example, we changed the name of our method from Main to mainin which case the compiler displays an error and complains about our program not having a starting Main method.

The concepts explained in this lesson are also shown visually as part of the following video:

Tags:

Leave a Reply



Follow the white rabbit