Visual c# 2008 Hello World Console App...
I figured I would post a simple Hello World Console Application built with Visual C# 2008. So here we go.
// Directiveusing System;
using System.Collections.Generic;
using System.Linq; // Remove if being used in Visual C# 2005
using System.Text;namespace HelloWorld
{
class Program
{
// Main Method
static void Main(string[] args)
{
// Data Members
string strOutput = "Hello World"; // Set string value
Console.Title = strOutput; // Set console title
Console.WriteLine(strOutput); // Write line of text
Console.ReadLine(); // Read line of text
}
}
}
Posted by Samson Loo