public Format Archive(Format format, string filename, string password, string[] items, ArchiveOption option) { var dest = GetResultsWith(filename); using (var writer = new ArchiveWriter(format)) { writer.Option = option; foreach (var item in items) { writer.Add(GetExamplesWith(item)); } writer.Save(dest, password); writer.Clear(); } using (var ss = IO.OpenRead(dest)) return(Formats.FromStream(ss)); }