示例#1
0
        private static void TemplateMethod()
        {
            XMLDocument document = new XMLDocument();

            document.Print();
            document.PrintBody();
            document.PrintHeader();

            HTMLDocument document2 = new HTMLDocument();

            document2.Print();
            document2.PrintBody();
            document2.PrintHeader();

            Console.ReadKey();
        }