Thursday, February 17, 2011

C# From Scratch

C# From Scratch



1) Download and install .NET Framework Beta 2

2) Download the C# Manual and take a look at it.
This has A LOT of important information.
GREAT TUTORIAL FOR BEGINNERS!!
3) Create a file called hello.cs which has the following code:
using System;
class Hello {
 static void Main() {
  Console.WriteLine("Hello world");
 }
}
4) Go to the command line then make sure you cd to the directory where your hellos.cs file exists) and type in:
csc hello.cs <hit>
The above should be done in the directory where hello.cs exists.</hit>
5) Type in:
hello<hit>
You should see the output!</hit>
Now you can start playing around with C#!!

0 comments: