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

            clone.CopyFrom(this);
            return(clone);
        }
Example #2
0
        /// <summary>
        /// Performs a copy from another <see cref="PersonArgs"/> updating this instance.
        /// </summary>
        /// <param name="from">The <see cref="PersonArgs"/> to copy from.</param>
        public void CopyFrom(PersonArgs from)
        {
            CopyFrom((EntityBase)from);
            FirstName   = from.FirstName;
            LastName    = from.LastName;
            GendersSids = from.GendersSids;

            OnAfterCopyFrom(from);
        }
Example #3
0
        /// <summary>
        /// Performs a copy from another <see cref="PersonArgs"/> updating this instance.
        /// </summary>
        /// <param name="from">The <see cref="PersonArgs"/> to copy from.</param>
        public void CopyFrom(PersonArgs from)
        {
            CopyFrom((EntityBase)from);
            this.FirstName = from.FirstName;
            this.LastName  = from.LastName;
            this.Genders   = from.Genders;

            this.OnAfterCopyFrom(from);
        }
Example #4
0
 partial void OnAfterCopyFrom(PersonArgs from);