NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

1.1 Hello, world

The canonical "Hello, world" program can be written in C# as follows:

using System;
class Hello
{
   static void Main() {
      Console.WriteLine("Hello, world");
   }
}

The default file extension for C# programs is .cs, as in hello.cs. Such a program can be compiled with the command line directive

csc hello.cs

which produces an executable program named hello.exe. The output of the program is:

Hello, world

Close examination of this program is illuminating:

For C and C++ developers, it is interesting to note a few things that do not appear in the "Hello, world" program.