/// <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); }
/// <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); }
partial void OnAfterCopyFrom(ProductArgs from);