Helloworld in csharp

esse quam videri
Revision as of 01:38, 11 January 2006 by Jeff (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Hello world in C# 1 open a text editor (I like to use SCiTE) 2 type in

<csharp>using System; namespace HelloClass {

   class HelloWorld
   {
       public static void Main()
       {
               Console.WriteLine("Hello World!");
               
       }
   }

}</csharp> 3 Save the file as HelloWorld.cs 4 Coplile the .cs file using csc