Monday, November 24, 2008

Basic C# Console Application Structure

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// Output text to the screen.
Console.WriteLine(“The first app in Beginning C# Programming!”);
Console.ReadKey();
}
}
}

The most important section of code at the moment is the following:

static void Main(string[] args)
{
// Output text to the screen.
Console.WriteLine(“The first app in Beginning C# Programming!”);
Console.ReadKey();
}

when we run the above console application this code will executed and will print on the screen “The first app in Beginning C# Programming!”.

In console application in C# to print the output we use " Console.WriteLine( );" .And inside the bracket we should put the message that we want to display.

3 comments:

Anonymous said...

Nice post ..i am also a programmer ...just in search of something..thanks a lot

rmouniak said...

its very informative blog and useful article thank you for sharing with us, keep posting learn

more about Dot net
Dot NET Online Training Hyderabad

Janu said...

thanks for all this information. You are including better information regarding this topic in an effective way. T hank you so much.


Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery