Exemple #1
0
        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));
        }
Exemple #2
0
 public static void Write(this Codeunit codeunit, TextWriter textWriter) => codeunit.Write(new CSideWriter(textWriter));
Exemple #3
0
 public static FileInfo WriteToFolder(this Codeunit codeunit, string folderName) => codeunit.Write(Path.Combine(folderName, $"cod{codeunit.ID}.txt"));