private IEnumerable <string> PipelineSaver(IPipe P, string path) { File.WriteAllText(path, ""); foreach (string item in P.GenerateEnumerable()) { File.AppendAllText(path, item + Environment.NewLine); yield return(item); } UI?.Lab?.RegisterReusableWorker(new FileLineReader(path, UI), $"Saved order of {SavePath} downloads"); }
public IEnumerable <string> GenerateEnumerable() { return(Pp.GenerateEnumerable()); }