示例#1
0
        public static FileInfo Write(this MenuSuite menuSuite, string fileName)
        {
            using (var streamWriter = new StreamWriter(fileName, false, Encoding.GetEncoding("ibm850")))
            {
                menuSuite.Write(streamWriter);
            }

            return(new FileInfo(fileName));
        }
示例#2
0
 public static void Write(this MenuSuite menuSuite, TextWriter textWriter) => menuSuite.Write(new CSideWriter(textWriter));
示例#3
0
 public static FileInfo WriteToFolder(this MenuSuite menuSuite, string folderName) => menuSuite.Write(Path.Combine(folderName, $"men{menuSuite.ID}.txt"));