Exemplo n.º 1
0
        /// <summary>
        /// Create a new version of the XmlConverter.
        /// </summary>
        /// <param name="versionDetector">Version detector to use.</param>
        /// <param name="mappingEngineFactory">Mapping engine factory to use.</param>
        public XmlConverter(IXmlVersionDetector versionDetector, IXmlMappingEngineFactory mappingEngineFactory)
        {
            if (versionDetector == null)
            {
                throw new ArgumentNullException("versionDetector");
            }
            if (mappingEngineFactory == null)
            {
                throw new ArgumentNullException("mappingEngineFactory");
            }

            this.VersionDetector = versionDetector;
            this.Factory         = mappingEngineFactory;

            this.Clear();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of the <see cref="IXmlSchemaValidator" /> class.
 /// </summary>
 /// <param name="locator"></param>
 /// <param name="detector"></param>
 public XmlSchemaValidator(IServiceLocator locator, IXmlVersionDetector detector)
 {
     this.locator  = locator;
     this.detector = detector;
 }
 /// <summary>
 /// Creates a new instance of the XmlVersionDetector class.
 /// </summary>
 /// <param name="detectors"></param>
 public XmlVersionDetector(IXmlVersionDetector[] detectors)
 {
     this.detectors = detectors;
 }
 /// <summary>
 /// Creates a new instance of the <see cref="IXmlSchemaValidator" /> class.
 /// </summary>
 /// <param name="locator"></param>
 /// <param name="detector"></param>
 public XmlSchemaValidator(IServiceLocator locator, IXmlVersionDetector detector)
 {
     this.locator = locator;
     this.detector = detector;
 }