コード例 #1
0
ファイル: ThemePartBase.cs プロジェクト: drock07/SadConsole
 /// <summary>
 /// Clones this object.
 /// </summary>
 /// <returns>The cloned object.</returns>
 public virtual object Clone()
 {
     var newItem = new ThemePartBase();
     newItem.Normal = this.Normal.Clone();
     newItem.Focused = this.Focused.Clone();
     newItem.MouseOver = this.MouseOver.Clone();
     newItem.Disabled = this.Disabled.Clone();
     return newItem;
 }
コード例 #2
0
        /// <summary>
        /// Clones this object.
        /// </summary>
        /// <returns>The cloned object.</returns>
        public virtual object Clone()
        {
            var newItem = new ThemePartBase();

            newItem.Normal    = this.Normal.Clone();
            newItem.Focused   = this.Focused.Clone();
            newItem.MouseOver = this.MouseOver.Clone();
            newItem.Disabled  = this.Disabled.Clone();
            return(newItem);
        }