The following procedure creates a C# version of the traditional "Hello World!" program. The program displays the string Hello World! To create and run a console application Start Visual Studio. On the File menu, point to New , and then click Project . In the Templates Categories pane, expand Visual C# , and then click Windows . In the Templates pane, click Console Application . Type a name for your project in the Name field. Click OK . The new project appears in Solution Explorer . If Program.cs is not open in the Code Editor , right-click Program.cs in Solution Explorer and then click View Code . Replace the contents of Program.cs with the following code. C# // A Hello World! program in C#. using System; namespace HelloWorld { class Hello { static void Main() { Console.WriteLine( "Hello World!" ); // Keep the console window open in debug mode. Console.WriteLine( ...
A Guide to make you Prepare for Placements, Aptitude Tests, Interviews, projects...