コード例 #1
0
        /// <summary>
        /// Add custom attribute to order.
        /// </summary>
        /// <param name="order">The order to add custom attribute to</param>
        /// <param name="item">The custom attribute to add</param>
        protected void Add(PublicOrder order, PublicOrderCustomData customData)
        {
            var customAttributes = new List <PublicOrderCustomData>(order.CustomData);

            customAttributes.Add(customData);

            order.CustomData = customAttributes.ToArray();
        }
コード例 #2
0
        /// <summary>
        /// Helper to add custom attribute to order.
        /// </summary>
        /// <param name="order">The order to add custom attribute to</param>
        /// <param name="customData">The custom attribute to add.</param>
        protected void Add(PublicOrder order, PublicOrderCustomData customData)
        {
            var customAttributes = new List<PublicOrderCustomData>(order.CustomData);

            customAttributes.Add(customData);

            order.CustomData = customAttributes.ToArray();
        }