public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as SubunitComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (SubunitElement != null) { dest.SubunitElement = (Hl7.Fhir.Model.Integer)SubunitElement.DeepCopy(); } if (SequenceElement != null) { dest.SequenceElement = (Hl7.Fhir.Model.FhirString)SequenceElement.DeepCopy(); } if (LengthElement != null) { dest.LengthElement = (Hl7.Fhir.Model.Integer)LengthElement.DeepCopy(); } if (SequenceAttachment != null) { dest.SequenceAttachment = (Hl7.Fhir.Model.Attachment)SequenceAttachment.DeepCopy(); } if (NTerminalModificationId != null) { dest.NTerminalModificationId = (Hl7.Fhir.Model.Identifier)NTerminalModificationId.DeepCopy(); } if (NTerminalModificationElement != null) { dest.NTerminalModificationElement = (Hl7.Fhir.Model.FhirString)NTerminalModificationElement.DeepCopy(); } if (CTerminalModificationId != null) { dest.CTerminalModificationId = (Hl7.Fhir.Model.Identifier)CTerminalModificationId.DeepCopy(); } if (CTerminalModificationElement != null) { dest.CTerminalModificationElement = (Hl7.Fhir.Model.FhirString)CTerminalModificationElement.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as SubunitComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (SubunitElement != null) { dest.SubunitElement = (Hl7.Fhir.Model.Integer)SubunitElement.DeepCopy(); } if (SequenceElement != null) { dest.SequenceElement = (Hl7.Fhir.Model.FhirString)SequenceElement.DeepCopy(); } if (LengthElement != null) { dest.LengthElement = (Hl7.Fhir.Model.Integer)LengthElement.DeepCopy(); } if (SequenceAttachment != null) { dest.SequenceAttachment = (Hl7.Fhir.Model.Attachment)SequenceAttachment.DeepCopy(); } if (FivePrime != null) { dest.FivePrime = (Hl7.Fhir.Model.CodeableConcept)FivePrime.DeepCopy(); } if (ThreePrime != null) { dest.ThreePrime = (Hl7.Fhir.Model.CodeableConcept)ThreePrime.DeepCopy(); } if (Linkage != null) { dest.Linkage = new List <Hl7.Fhir.Model.SubstanceNucleicAcid.LinkageComponent>(Linkage.DeepCopy()); } if (Sugar != null) { dest.Sugar = new List <Hl7.Fhir.Model.SubstanceNucleicAcid.SugarComponent>(Sugar.DeepCopy()); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Media; if (dest != null) { base.CopyTo(dest); if (TypeElement != null) { dest.TypeElement = (Code <Hl7.Fhir.Model.Media.MediaType>)TypeElement.DeepCopy(); } if (Subtype != null) { dest.Subtype = (Hl7.Fhir.Model.CodeableConcept)Subtype.DeepCopy(); } if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (DateTimeElement != null) { dest.DateTimeElement = (Hl7.Fhir.Model.FhirDateTime)DateTimeElement.DeepCopy(); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Operator != null) { dest.Operator = (Hl7.Fhir.Model.ResourceReference)Operator.DeepCopy(); } if (View != null) { dest.View = (Hl7.Fhir.Model.CodeableConcept)View.DeepCopy(); } if (DeviceNameElement != null) { dest.DeviceNameElement = (Hl7.Fhir.Model.FhirString)DeviceNameElement.DeepCopy(); } if (HeightElement != null) { dest.HeightElement = (Hl7.Fhir.Model.Integer)HeightElement.DeepCopy(); } if (WidthElement != null) { dest.WidthElement = (Hl7.Fhir.Model.Integer)WidthElement.DeepCopy(); } if (FramesElement != null) { dest.FramesElement = (Hl7.Fhir.Model.Integer)FramesElement.DeepCopy(); } if (LengthElement != null) { dest.LengthElement = (Hl7.Fhir.Model.Integer)LengthElement.DeepCopy(); } if (Content != null) { dest.Content = (Hl7.Fhir.Model.Attachment)Content.DeepCopy(); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }