Exemple #1
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>The cloned instance.</returns>
        public virtual ItemOptionLink Clone()
        {
            var link = new ItemOptionLink();

            link.AssignValues(this);
            return(link);
        }
Exemple #2
0
 /// <summary>
 /// Clones the item option link.
 /// </summary>
 /// <param name="link">The link.</param>
 /// <returns>The cloned item option link.</returns>
 protected virtual ItemOptionLink CloneItemOptionLink(ItemOptionLink link)
 {
     return(link.Clone());
 }
Exemple #3
0
 /// <summary>
 /// Assigns the values.
 /// </summary>
 /// <param name="otherLink">The other link.</param>
 public void AssignValues(ItemOptionLink otherLink)
 {
     this.ItemOption = otherLink.ItemOption;
     this.Level      = otherLink.Level;
     this.Index      = otherLink.Index;
 }