Strange how quickly I can forget simple stuff if I don't use it.

Been playing around writing some C# code in a text editor, and compile them from the command line. Just playing for the fun.

Anyhow, I forgot how to go about and compile something like this:
Code:
using System;
public class Time
{
// public methods
public void DisplayCurrentTime( )
 {
  Console.WriteLine("stub for DisplayCurrentTime");
 }
// private variables
 int Year;
 int Month;
 int Date;
 int Hour;
 int Minute;
 int Second;
}
public class Tester
 {
 static void Main( )
 {
  Time t = new Time( );
  t.DisplayCurrentTime( );
 }
}
guess I should create another account for such silly questions making my name gats, but then, that is frown upon here on the forums.