public object Instantiate(MarkupDocument document) { var doc = (StubDocument)this.Map(document); doc.NamedNodeEmitted -= Doc_NamedNodeEmitted; return(doc.Root); }
protected IMarkupDocument <T> Map(MarkupDocument document) { var doc = CreateDocument(); doc.SetRoot(Map(doc, document.Root)); return(doc); }