Beispiel #1
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as SubstanceNucleicAcid;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (SequenceType != null)
            {
                dest.SequenceType = (Hl7.Fhir.Model.CodeableConcept)SequenceType.DeepCopy();
            }
            if (NumberOfSubunitsElement != null)
            {
                dest.NumberOfSubunitsElement = (Hl7.Fhir.Model.Integer)NumberOfSubunitsElement.DeepCopy();
            }
            if (AreaOfHybridisationElement != null)
            {
                dest.AreaOfHybridisationElement = (Hl7.Fhir.Model.FhirString)AreaOfHybridisationElement.DeepCopy();
            }
            if (OligoNucleotideType != null)
            {
                dest.OligoNucleotideType = (Hl7.Fhir.Model.CodeableConcept)OligoNucleotideType.DeepCopy();
            }
            if (Subunit != null)
            {
                dest.Subunit = new List <Hl7.Fhir.Model.SubstanceNucleicAcid.SubunitComponent>(Subunit.DeepCopy());
            }
            return(dest);
        }
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as SubstanceProtein;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (SequenceType != null)
            {
                dest.SequenceType = (Hl7.Fhir.Model.CodeableConcept)SequenceType.DeepCopy();
            }
            if (NumberOfSubunitsElement != null)
            {
                dest.NumberOfSubunitsElement = (Hl7.Fhir.Model.Integer)NumberOfSubunitsElement.DeepCopy();
            }
            if (DisulfideLinkageElement != null)
            {
                dest.DisulfideLinkageElement = new List <Hl7.Fhir.Model.FhirString>(DisulfideLinkageElement.DeepCopy());
            }
            if (Subunit != null)
            {
                dest.Subunit = new List <Hl7.Fhir.Model.SubstanceProtein.SubunitComponent>(Subunit.DeepCopy());
            }
            return(dest);
        }