Пример #1
0
        /// <summary>
        /// Copy the message into the <paramref name="destination" />.
        /// </summary>
        /// <param name="destination">The object, to which copied information.</param>
        protected void CopyTo(LicenseLookupMessage destination)
        {
            if (destination == null)
                throw new ArgumentNullException(nameof(destination));

            base.CopyTo(destination);

            destination.Platform = Platform;
            destination.HardwareId = HardwareId;
        }
Пример #2
0
 /// <summary>
 /// Create a copy of <see cref="LicenseLookupMessage"/>.
 /// </summary>
 /// <returns>Copy.</returns>
 public override Message Clone()
 {
     var clone = new LicenseLookupMessage();
     CopyTo(clone);
     return clone;
 }