internal XmlSchema Clone()
        {
            XmlSchema schema = new XmlSchema {
                attributeFormDefault = this.attributeFormDefault,
                elementFormDefault   = this.elementFormDefault,
                blockDefault         = this.blockDefault,
                finalDefault         = this.finalDefault,
                targetNs             = this.targetNs,
                version    = this.version,
                includes   = this.includes,
                Namespaces = base.Namespaces,
                items      = this.items,
                BaseUri    = this.BaseUri
            };

            SchemaCollectionCompiler.Cleanup(schema);
            return(schema);
        }
Example #2
0
        internal new XmlSchema Clone()
        {
            XmlSchema that = new XmlSchema();

            that._attributeFormDefault = _attributeFormDefault;
            that._elementFormDefault   = _elementFormDefault;
            that._blockDefault         = _blockDefault;
            that._finalDefault         = _finalDefault;
            that._targetNs             = _targetNs;
            that._version  = _version;
            that._includes = _includes;

            that.Namespaces = this.Namespaces;
            that._items     = _items;
            that.BaseUri    = this.BaseUri;

            SchemaCollectionCompiler.Cleanup(that);
            return(that);
        }
        internal new XmlSchema Clone()
        {
            XmlSchema that = new XmlSchema();

            that.attributeFormDefault = this.attributeFormDefault;
            that.elementFormDefault   = this.elementFormDefault;
            that.blockDefault         = this.blockDefault;
            that.finalDefault         = this.finalDefault;
            that.targetNs             = this.targetNs;
            that.version  = this.version;
            that.includes = this.includes;

            that.Namespaces = this.Namespaces;
            that.items      = this.items;
            that.BaseUri    = this.BaseUri;

            SchemaCollectionCompiler.Cleanup(that);
            return(that);
        }