/// <summary> /// When an object of this class is instantiated, /// creates & returns a "Shallow" copy of itself. /// </summary> /// <returns>"Shallow" copy of the object.</returns> public virtual CloneableObjectClass Clone() { CloneableObjectClass Result = new CloneableObjectClass(); Result.Create(); Result.AssignFrom(this); return Result; }
/// <summary> /// Copies all value properties from the current object, /// to <code>ADest</code>. /// </summary> /// <param name="ADest"></param> public void AssignTo(CloneableObjectClass ADest) { ADest.AssignFrom(this); }