예제 #1
0
 internal ReaderImplSub( ReaderImpl rootReader, ReaderBase parent )
     : base(rootReader)
 {
     Parent = parent;
     _jail = Root.CreateJail();
     Root.Current = this;
 }
예제 #2
0
 internal ReaderImplSub(ReaderImpl rootReader, ReaderBase parent)
     : base(rootReader)
 {
     Parent       = parent;
     _jail        = Root.CreateJail();
     Root.Current = this;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
 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;
 }
예제 #6
0
 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;
 }