public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as ParameterDefinition; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (NameElement != null) { dest.NameElement = (Hl7.Fhir.Model.Code)NameElement.DeepCopy(); } if (UseElement != null) { dest.UseElement = (Code <Hl7.Fhir.Model.OperationParameterUse>)UseElement.DeepCopy(); } if (MinElement != null) { dest.MinElement = (Hl7.Fhir.Model.Integer)MinElement.DeepCopy(); } if (MaxElement != null) { dest.MaxElement = (Hl7.Fhir.Model.FhirString)MaxElement.DeepCopy(); } if (DocumentationElement != null) { dest.DocumentationElement = (Hl7.Fhir.Model.FhirString)DocumentationElement.DeepCopy(); } if (TypeElement != null) { dest.TypeElement = (Code <Hl7.Fhir.Model.FHIRAllTypes>)TypeElement.DeepCopy(); } if (ProfileElement != null) { dest.ProfileElement = (Hl7.Fhir.Model.Canonical)ProfileElement.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as ResourceComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (CodeElement != null) { dest.CodeElement = (Code <Hl7.Fhir.Model.ResourceType>)CodeElement.DeepCopy(); } if (ParamElement != null) { dest.ParamElement = new List <Hl7.Fhir.Model.FhirString>(ParamElement.DeepCopy()); } if (DocumentationElement != null) { dest.DocumentationElement = (Hl7.Fhir.Model.FhirString)DocumentationElement.DeepCopy(); } return(dest); }