C# console based application


CSharp.Net-Informations.com
SiteMap

The following program is a simple console based CSharp application. The program starts from the main() method. Create a new Console Application project and copy and paste the following C# source code.


using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
	class Program
	{
		static void Main(string[] args)
		{
			Console.WriteLine("My First Program");
			Console.ReadKey();
		}
	}
}

When you execute this C# program you will get "This is my first program" in the console and the system wait for the input from the user. Console.ReadKey() is waiting for user input.


  • Sponsored Program








More Source Code :
|  Home  |   VB.NET  |   C#  |   ASP.NET  |   SiteMap  |   Terms of Use  |   About  |