A Main method

Note that the C# program in Listing 1 contains a Main method, but it is spelled with an upper-case M.

The Main method must be defined inside a class so as not to be global.

(No global methods or variables are allowed in C#.)