Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
 /// <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);
 }