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); }
public static Func <bool> AllVarsReady(IVariableEntry var1, params IVariableEntry[] vars) { return(AllVarsReady(new [] { var1 }.Concat(vars))); }