Beispiel #1
0
        static void Main(string[] args)
        {
            TextReader reader = Console.In;

            if (args.Any())
            {
                /*
                 * TODO: need YACLAP for some CLI options
                 */
                Console.Error.WriteLine("No arguments yet, redirect standard input in using Get-Content/Type etc.");
                Environment.Exit(1);
            }

            var writer = Console.Out;

            var svc = new PgnSerialisationService();

            writer.WriteLine(svc.SerializeAllGames(reader.ReadToEnd(), false));
        }
        public void METHOD()
        {
            var svc = new PgnSerialisationService();

            var serializeAllGames = svc.SerializeAllGames(WikiGame.PgnText, true);
        }