internal ReaderImplSub( ReaderImpl rootReader, ReaderBase parent ) : base(rootReader) { Parent = parent; _jail = Root.CreateJail(); Root.Current = this; }
internal ReaderImplSub(ReaderImpl rootReader, ReaderBase parent) : base(rootReader) { Parent = parent; _jail = Root.CreateJail(); Root.Current = this; }
public ReaderImpl(XmlReader reader, IServiceProvider baseServiceProvider, Version storageVersion, bool autoCloseReader) : base(null) { Current = this; _xmlReader = reader; _serviceContainer = new SimpleServiceContainer(baseServiceProvider); _path = new List <string>(); _pathEx = new ReadOnlyListOnIList <string>(_path); _storageVersion = storageVersion; _mustCloseReader = autoCloseReader; }
public ReaderImpl( XmlReader reader, IServiceProvider baseServiceProvider, Version storageVersion, bool autoCloseReader ) : base(null) { Current = this; _xmlReader = reader; _serviceContainer = new SimpleServiceContainer( baseServiceProvider ); _path = new List<string>(); _pathEx = new ReadOnlyListOnIList<string>( _path ); _storageVersion = storageVersion; _mustCloseReader = autoCloseReader; }
public ReaderImpl( XmlReader reader, IServiceProvider baseServiceProvider, bool autoCloseReader ) : base(null) { if( reader == null ) throw new ArgumentNullException( "reader" ); Current = this; _xmlReader = reader; _serviceContainer = new SimpleServiceContainer( baseServiceProvider ); _path = new List<string>(); _pathEx = new ReadOnlyListOnIList<string>( _path ); if( reader.IsStartElement( "CK-Structured" ) ) { _storageVersion = new Version( reader.GetAttribute( "version" ) ); _isEmpty = reader.IsEmptyElement; if( !_isEmpty ) _openingElementName = reader.Name; reader.Read(); } _mustCloseReader = autoCloseReader; }
public ReaderImpl(XmlReader reader, IServiceProvider baseServiceProvider, bool autoCloseReader) : base(null) { if (reader == null) { throw new ArgumentNullException("reader"); } Current = this; _xmlReader = reader; _serviceContainer = new SimpleServiceContainer(baseServiceProvider); _path = new List <string>(); _pathEx = new ReadOnlyListOnIList <string>(_path); if (reader.IsStartElement("CK-Structured")) { _storageVersion = new Version(reader.GetAttribute("version")); _isEmpty = reader.IsEmptyElement; if (!_isEmpty) { _openingElementName = reader.Name; } reader.Read(); } _mustCloseReader = autoCloseReader; }