示例#1
0
        public object Instantiate(MarkupDocument document)
        {
            var doc = (StubDocument)this.Map(document);

            doc.NamedNodeEmitted -= Doc_NamedNodeEmitted;
            return(doc.Root);
        }
示例#2
0
        protected IMarkupDocument <T> Map(MarkupDocument document)
        {
            var doc = CreateDocument();

            doc.SetRoot(Map(doc, document.Root));

            return(doc);
        }