Listing 1:

using System;

namespace CSharpTestNamespace {

class CSharpTest {

private DateTime currentDate;

CSharpTest() {
currentDate = DateTime.Now; 
}//end CSharpTest()
public static void Main() {
CSharpTest cst = new CSharpTest();
Console.WriteLine( "Hello there." );
Console.WriteLine( "Today is " + cst.currentDate );
Console.Read();
}//end Main()

}//end class CSharpTest

}//end namespace CSharpTestNamespace