Exemple #1
0
        /// <summary>
        /// 克隆当前元素到新的宿主模板
        /// </summary>
        /// <param name="ownerTemplate"></param>
        /// <returns></returns>
        internal override Element Clone(Template ownerTemplate)
        {
            ElseTag tag = new ElseTag(ownerTemplate);

            this.CopyTo((IfConditionTag)tag);
            return(tag);
        }
Exemple #2
0
 /// <summary>
 /// 克隆当前元素到新的宿主模板
 /// </summary>
 /// <param name="ownerTemplate"></param>
 /// <returns></returns>
 internal override Element Clone(Template ownerTemplate)
 {
     ElseTag tag = new ElseTag(ownerTemplate);
     this.CopyTo((IfConditionTag)tag);
     return tag;
 }