Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
 public IEnumerable <string> GenerateEnumerable()
 {
     return(Pp.GenerateEnumerable());
 }