Beispiel #1
0
        /// <summary>
        /// Creates a deep copy of the <see cref="ProductArgs"/>.
        /// </summary>
        /// <returns>A deep copy of the <see cref="ProductArgs"/>.</returns>
        public override object Clone()
        {
            var clone = new ProductArgs();

            clone.CopyFrom(this);
            return(clone);
        }
Beispiel #2
0
        /// <summary>
        /// Performs a copy from another <see cref="ProductArgs"/> updating this instance.
        /// </summary>
        /// <param name="from">The <see cref="ProductArgs"/> to copy from.</param>
        public void CopyFrom(ProductArgs from)
        {
            CopyFrom((EntityBase)from);
            Name        = from.Name;
            Description = from.Description;

            OnAfterCopyFrom(from);
        }
Beispiel #3
0
 partial void OnAfterCopyFrom(ProductArgs from);