コード例 #1
0
        /// <summary>
        /// Create a copy of <see cref="OrderPairReplaceMessage"/>.
        /// </summary>
        /// <returns>Copy.</returns>
        public override Message Clone()
        {
            var clone = new OrderPairReplaceMessage
            {
                Message1 = (OrderReplaceMessage)Message1?.Clone(),
                Message2 = (OrderReplaceMessage)Message2?.Clone(),
            };

            CopyTo(clone);

            return(clone);
        }