





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































line 1 // This is traditionally the first program written. line 2 using System; line 3 namespace HelloWorldProgram line 4 { line 5 class HelloWorld line 6 { line 7 static void Main( ) line 8 { line 9 Console.WriteLine(“Hello World!”); line 10 } line 11 } line 12 }
Comments in green Keywords in blue
From Example 1-
From Example 1-
line 1 // This is traditionally the first program written. line 2 using System; line 3 namespace HelloWorldProgram line 4 {
line 12 }
Predefined namespace (System) – part of .NET FCL
User-defined namespace Body of user- defined namespace
line 1 // This is traditionally the first program written. line 2 using System; line 3 namespace HelloWorldProgram line 4 { line 5 class HelloWorld line 6 {
line 11 } line 12 }
User- defined class