private ExecutionContext(Script script, Script callingScript, int rvcount, RandomAccessStack <StackItem> stack, RandomAccessStack <StackItem> alt) { this.RVCount = rvcount; this.Script = script; this.EvaluationStack = stack; this.AltStack = alt; this.CallingScript = callingScript; }
public void CopyTo(RandomAccessStack <T> stack, int count = -1) { if (count == 0) { return; } if (count == -1) { stack.list.AddRange(list); } else { stack.list.AddRange(list.Skip(list.Count - count)); } }