예제 #1
0
        public IList <IVariableEntry> GetOrCreateChildren(int offset, int count)
        {
            int beginIndex = Math.Max(0, offset);
            int endIndex   = (int)Math.Min(offset + (long)count, _totalChildCount);

            List <IVariableEntry> children = new List <IVariableEntry>();

            for (int index = beginIndex; index < endIndex; ++index)
            {
                IVariableEntry child = GetOrCreateChild(index);
                children.Add(child);
            }
            return(children);
        }
예제 #2
0
 public static Func <bool> AllVarsReady(IVariableEntry var1, params IVariableEntry[] vars)
 {
     return(AllVarsReady(new [] { var1 }.Concat(vars)));
 }