Beispiel #1
0
        public void CopyFrom(XS_schemaType schemaType_in)
        {
            int _index = -1;

            this.xs_ = schemaType_in.xs_;
            this.targetnamespace_    = schemaType_in.targetnamespace_;
            this.xmlns_              = schemaType_in.xmlns_;
            this.elementformdefault_ = schemaType_in.elementformdefault_;
            this.simpletypecollection_.Clear();
            for (int d = 0; d < schemaType_in.simpletypecollection_.Count; d++)
            {
                this.simpletypecollection_.Add(
                    out _index,
                    new XS_simpleTypeType()
                    );
                this.simpletypecollection_[_index].CopyFrom(
                    schemaType_in.simpletypecollection_[d]
                    );
            }
            this.complextypecollection_.Clear();
            for (int d = 0; d < schemaType_in.complextypecollection_.Count; d++)
            {
                this.complextypecollection_.Add(
                    out _index,
                    new XS_complexTypeType()
                    );
                this.complextypecollection_[_index].CopyFrom(
                    schemaType_in.complextypecollection_[d]
                    );
            }
            if (schemaType_in.element__ != null)
            {
                this.element__.CopyFrom(schemaType_in.element__);
            }
        }
Beispiel #2
0
		public void CopyFrom(XS_schemaType schemaType_in) {
			int _index = -1;

			this.xs_ = schemaType_in.xs_;
			this.targetnamespace_ = schemaType_in.targetnamespace_;
			this.xmlns_ = schemaType_in.xmlns_;
			this.elementformdefault_ = schemaType_in.elementformdefault_;
			this.simpletypecollection_.Clear();
			for (int d = 0; d < schemaType_in.simpletypecollection_.Count; d++) {
				this.simpletypecollection_.Add(
					out _index,
					new XS_simpleTypeType()
				);
				this.simpletypecollection_[_index].CopyFrom(
					schemaType_in.simpletypecollection_[d]
				);
			}
			this.complextypecollection_.Clear();
			for (int d = 0; d < schemaType_in.complextypecollection_.Count; d++) {
				this.complextypecollection_.Add(
					out _index,
					new XS_complexTypeType()
				);
				this.complextypecollection_[_index].CopyFrom(
					schemaType_in.complextypecollection_[d]
				);
			}
			if (schemaType_in.element__ != null) this.element__.CopyFrom(schemaType_in.element__);
		}