public static FileInfo Write(this XmlPort xmlPort, string fileName) { using (var streamWriter = new StreamWriter(fileName, false, Encoding.GetEncoding("ibm850"))) { xmlPort.Write(streamWriter); } return(new FileInfo(fileName)); }
public static void Write(this XmlPort xmlPort, TextWriter textWriter) => xmlPort.Write(new CSideWriter(textWriter));
public static FileInfo WriteToFolder(this XmlPort xmlPort, string folderName) => xmlPort.Write(Path.Combine(folderName, $"xml{xmlPort.ID}.txt"));