Exemple #1
0
 // the AfterConstruction logic method is executed after an object is constructed
 // use this method to initialize properties with default values
 public static void AfterConstruction(ITask task)
 {
     task.DueDate = DateTime.Now.AddDays(1);
     task.Report  = task.CreateReport("new task");
 }