Пример #1
0
 public override ResultContainer Next()
 {
     if (tree != null)
     {
         if (lastInstance == null || lastInstance.IsActivated || isMultiple)
         {
             lastInstance = CreateNewTiming();
             lastInstance.Init();
             tree.AddTiming(lastInstance);
         }
         else
         {
             if (isOverwrite)
             {
                 lastInstance.Init();
             }
         }
     }
     if (children != null && children.Count > 0 && children[0] != null)
     {
         ResultContainer result = children[0].Next();
         return(result);
     }
     return(base.Next());
 }