Exemple #1
0
        static void Main(string[] args)
        {
            AbstractHandler doc = new DOCHandler();

            AllMethods(doc);
            doc.Save();
            TXTHandler txt = new TXTHandler();

            AllMethods(txt);
            try
            {
                AbstractHandler xml = Definition("xml");
                AllMethods(xml);
            }
            catch (Exception e)
            {
                Console.WriteLine($"Ошибка: {e.Message}");
            }
            Console.ReadLine();
        }