Exemplo n.º 1
0
        public static void Script11_1()
        {
            var factory   = new FormatFactory();
            var memStream = new MemoryStream(Encoding.UTF8.GetBytes("<molecule xmlns='http://www.xml-cml.org/schema' />"));
            var format    = factory.GuessFormat(memStream);

            Console.WriteLine($"Format: {format.FormatName}");
        }