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

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

            this.OnAfterCopyFrom(from);
        }
Beispiel #3
0
        /// <summary>
        /// Performs a copy from another <see cref="RobotArgs"/> updating this instance.
        /// </summary>
        /// <param name="from">The <see cref="RobotArgs"/> to copy from.</param>
        public void CopyFrom(RobotArgs from)
        {
            CopyFrom((EntityBase)from);
            ModelNo          = from.ModelNo;
            SerialNo         = from.SerialNo;
            PowerSourcesSids = from.PowerSourcesSids;

            OnAfterCopyFrom(from);
        }
Beispiel #4
0
 partial void OnAfterCopyFrom(RobotArgs from);