Example #1
0
 public void TimeDisplay(string s)
 {
     Console.WriteLine("Instance \"" + s + "\" has been created at: " + InstanceConstructorTime.ToLongTimeString());
     Console.WriteLine("Static constructor has been created at: " + SaticConstructorTime.ToLongTimeString() + "\n");
 }
Example #2
0
 //Set value to static propriety
 static Something()
 {
     SaticConstructorTime = DateTime.Now;
     Console.WriteLine("Static constructor has been executed at: {0}",
                       SaticConstructorTime.ToLongTimeString());
 }