/// <summary>
 /// Initializes a new instance of the <see cref="XmlReaderContext"/> class.
 /// </summary>
 /// <param name="resource">The resource.</param>
 /// <param name="reader">The reader.</param>
 /// <param name="objectDefinitionFactory">The factory to use for creating new <see cref="IObjectDefinition"/> instances.</param>
 internal XmlReaderContext(IResource resource, IObjectDefinitionReader reader, IObjectDefinitionFactory objectDefinitionFactory) 
     : base(resource)
 {
     this.reader = reader;
     if (reader is XmlObjectDefinitionReader)
     {
         this.namespaceParserResolver = ((XmlObjectDefinitionReader) reader).NamespaceParserResolver;
     }
     this.objectDefinitionFactory = objectDefinitionFactory;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlReaderContext"/> class.
 /// </summary>
 /// <param name="resource">The resource.</param>
 /// <param name="reader">The reader.</param>
 /// <param name="objectDefinitionFactory">The factory to use for creating new <see cref="IObjectDefinition"/> instances.</param>
 internal XmlReaderContext(IResource resource, IObjectDefinitionReader reader, IObjectDefinitionFactory objectDefinitionFactory)
     : base(resource)
 {
     this.reader = reader;
     if (reader is XmlObjectDefinitionReader)
     {
         this.namespaceParserResolver = ((XmlObjectDefinitionReader)reader).NamespaceParserResolver;
     }
     this.objectDefinitionFactory = objectDefinitionFactory;
 }