Exemplo n.º 1
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Ratio;

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

            base.CopyTo(dest);
            if (Numerator != null)
            {
                dest.Numerator = (Hl7.Fhir.Model.Quantity)Numerator.DeepCopy();
            }
            if (Denominator != null)
            {
                dest.Denominator = (Hl7.Fhir.Model.Quantity)Denominator.DeepCopy();
            }
            return(dest);
        }