Beispiel #1
0
 public virtual void AddWork(IWork work)
 {
     if (work != null)
     {
         works.Add(work);
         total += work.GetTotal();
     }
 }
Beispiel #2
0
 public override float GetTotal()
 {
     return(then != null?then.GetTotal() : 1);
 }