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(); }
public static void Main() { var documentWriter = new PdfDocumentWriter(); documentWriter.CreateDocument(); }