Tuesday, 13 August 2013
Hello World Tutorial
IDE: Visual Studio .NET 2012
This tutorial will help you how to print “Hello World” in C#
C# programs are organized using namespaces.
Namespaces can contain type declarations and nested namespace declarations.
Type declarations - They are used to define classes, structs, interfaces, enums and delegates.
Different Methods: To print “Hello World” on Console
#Method – 1:
Code Explanation:The WriteLine method is contained in the System.Console Class, which displays the input provided in inverted commas “” to the console.
#Method – 2:
You can use the using directive by fully qualifying a class to use the System class.
#Method – 3: To access the command line parameters passed into your application, use the following code.
For any doubts or queries please comment below and we'll get back to you.