Hey,
This post will give you a simple tutorial on how to write a simple "Hello World" application using C#.
To start programming with C#, you need a compiler that can compile the code into the machine language that the computer can understand.
Anyway, getting to the point, in this article I will explain how to write your simple hello world console application using C#.
Here's what you need:
Visual Studio 2008/2010 Express(freely available) or higher
or MonoDevelop
or #Develop (SharpDevelop)
All of the above three tools are freely available on the internet and in case you have trouble looking for it, try asking your friend Google for help.
Now that we have the tool to get started, lets start:
using System;
namespace MyFirstCSProgram
{
class MyFirstCSProgram
{
static void Main(string[] args)
{
//Prints whatever is passed to it on the console.
Console.WriteLine("Hello World, This is Eklavya!");
}
}
}
There you go, a very simple "Hello World" console app is ready!