public IIterator Clone() { var newIterator = new StreamIterator(iterator); newIterator.actions.AddRange(actions); return(newIterator); }
public IObject Copy(IStreamAction action) { var newIterator = new StreamIterator(iterator); newIterator.actions.AddRange(actions); newIterator.actions.Add(action); return(newIterator); }