public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as StageComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Summary != null) { dest.Summary = (Hl7.Fhir.Model.CodeableConcept)Summary.DeepCopy(); } if (Assessment != null) { dest.Assessment = new List <Hl7.Fhir.Model.ResourceReference>(Assessment.DeepCopy()); } return(dest); }