Programming References and tutorials for Developers.
The following console program stated below will simply display a string hello world on screen.
using System; //using keyword
used to import a library
namespace SampleCode{ //namespace denotes the project name
class HelloWorld{ //HelloWorld the name of the class
static void Main(string [] args){ //invoking the Main method
Console.WriteLine("Hello World"); //method used to display
the string Hello world
}
}
}
Subscribe to:
Post Comments (Atom)
0 comments for this post