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"); }
//Set value to static propriety static Something() { SaticConstructorTime = DateTime.Now; Console.WriteLine("Static constructor has been executed at: {0}", SaticConstructorTime.ToLongTimeString()); }