示例#1
0
    public static void Main()
    {
        DocumentWriter documentWriter = new PdfDocumentWriter();

        documentWriter.CreateDocument();

        // Re-use the same variable.
        // CreateDocumentwill still call the correct version of CreatePage.
        documentWriter = new HtmlDocumentWriter();
        documentWriter.CreateDocument();
    }
示例#2
0
    public static void Main()
    {
        var documentWriter = new PdfDocumentWriter();

        documentWriter.CreateDocument();
    }