Hello!
Here I have a very easy hello world example.
This example works fine. I just wonder how can it work when I have
private on the Main method. I would think that the operating system would
not be able to
call this Main method when I have decared it as private. Normally this
private is only for class members as you know. The reason it work must be
because the operating system (CLR) is considered as a class member.
using System;
class Hello
{
private static void Main()
{
Console.WriteLine("Hello world");
}
}
//Tony