CSharp.Net-Informations.com
   Home      .Net Framework      VB.NET      C#                                                                      About


  C# console based application

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.

         C# Source Code Download           Print Source Code
         C# console based application - Download
        
C# Tutorial

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.

CSharp overview Related Contents
*     An overview of Microsoft .Net Framework
*     An introduction to C#
*     C# and VB.NET
*     C# and JAVA
*     C# sample programs
*     C# windows based application
*     C# command line tools
*     C# command line arguments


   Home      VB.NET      C#
CSharp Related Topics
*     An overview of Microsoft CSharp
*     C# Language Tutorial
*     C# Statements Tutorial
*     C# Collection Tutorial
*     C# String Tutorial
*     C# File Operations Tutorial
*     C# Excel Tutorial
*     C# Crystal Reports Tutorial
*     CSharp Communication Tutorial
*     C# Ado.Net Tutorial and Source Code
*     C# ADO.NET data Providers Tutorial
*     C# Dataset Tutorial
*     C# DataAdapater Tutorial
*     Csharp DataView Tutorial
*     Csharp Remoting Tutorial
*     C# XML Tutorial
*     C# DataGridView Tutorial
   Home      VB.NET      C#
More Source Code :   
Mail to :  feedback@net-informations.com
  |  Home   |  VB.NET   |  C#   |  SiteMap   |  Terms of Use   |  About   |
net-informations.com (C) 2010
All Rights Reserved. All other trademarks are property of their respective owners.