/// <summary> /// Performs a copy from another <see cref="PersonDetail"/> updating this instance. /// </summary> /// <param name="from">The <see cref="PersonDetail"/> to copy from.</param> public void CopyFrom(PersonDetail from) { CopyFrom((Person)from); this.History = from.History; this.OnAfterCopyFrom(from); }
/// <summary> /// Performs a clean-up of the <see cref="PersonDetail"/> resetting property values as appropriate to ensure a basic level of data consistency. /// </summary> public override void CleanUp() { base.CleanUp(); this.History = Cleaner.Clean <WorkHistoryCollection>(this.History); this.OnAfterCleanUp(); }
/// <summary> /// Performs a copy from another <see cref="PersonDetail"/> updating this instance. /// </summary> /// <param name="from">The <see cref="PersonDetail"/> to copy from.</param> public void CopyFrom(PersonDetail from) { CopyFrom((Person)from); History = CopyOrClone(from.History, History); OnAfterCopyFrom(from); }
/// <summary> /// Performs a clean-up of the <see cref="PersonDetail"/> resetting property values as appropriate to ensure a basic level of data consistency. /// </summary> public override void CleanUp() { base.CleanUp(); History = Cleaner.Clean(History); OnAfterCleanUp(); }
/// <summary> /// Creates a deep copy of the <see cref="WorkHistoryCollection"/>. /// </summary> /// <returns>A deep copy of the <see cref="WorkHistoryCollection"/>.</returns> public override object Clone() { var clone = new WorkHistoryCollection(); foreach (WorkHistory item in this) { clone.Add((WorkHistory)item.Clone()); } return(clone); }