コード例 #1
0
        public XmlSource(Stream source)
        {
            _source = source;
            var serializers = new List <IXmlElementSerializer>()
            {
                new BookElementSerializer(),
                new NewspaperElementSerializer(),
                new PatentElementSerializer()
            };

            _reader = new XmlSourceReader(serializers);
            _writer = new XmlSourceWriter(serializers);
        }
コード例 #2
0
 public XmlSource(Stream source, IXmlSourceReader reader, IXmlSourceWriter writer)
 {
     _source = source;
     _reader = reader;
     _writer = writer;
 }