HelloWorld program (Example 1-1) contains a class
HelloWorld with a parameterless static method
public static void specify the type of the method; in this case, it’s
public (is visible to other classes),
static (doesn’t need an instance of the
HelloWorld class to execute the method), and
void (doesn’t return a value). Also, because the parentheses are empty,
Main() doesn’t expect you to pass it any arguments (objects or variables that would be referred to within the method).
In fact, you won’t call
Main() on your own; NETMF does it for you. When the Netduino Plus reboots or is powered on, it looks for the
Main() method and runs it as the entry point of your program. This program writes the string
Hello World to ...