/// <summary> /// Clones this instance. /// </summary> /// <returns>The cloned instance.</returns> public virtual ItemOptionLink Clone() { var link = new ItemOptionLink(); link.AssignValues(this); return(link); }
/// <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()); }
/// <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; }