April 2013
Intermediate to advanced
1700 pages
92h 51m
English
By far the simplest managed code application that can be written in C# is one that doesn’t do anything useful. The following is only of academic interest, yes, but we have to start somewhere:
class Program{ static void Main() { }}
Main is the managed code entry-point method for our application. Its body, delimited by curly braces, contains the statements that get executed by the application. In this case, our method body is empty.
Note: Case Sensitivity
Notice the casing of the Main method, with its first character uppercase. C# is a case-sensitive language, just like other C derivatives such as C++ and Java. In other words, method names that differ only in case denote different methods; so main and Main ...
Read now
Unlock full access