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