Ejemplo n.º 1
0
 /// <summary>
 /// 克隆当前元素到新的宿主模板
 /// </summary>
 /// <param name="ownerTemplate"></param>
 /// <returns></returns>
 internal override Element Clone(Template ownerTemplate)
 {
     IncludeTag tag = new IncludeTag(ownerTemplate);
     this.CopyTo(tag);
     tag.File = this.File;
     tag.Charset = this.Charset;
     return tag;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 克隆当前元素到新的宿主模板
        /// </summary>
        /// <param name="ownerTemplate"></param>
        /// <returns></returns>
        internal override Element Clone(Template ownerTemplate)
        {
            IncludeTag tag = new IncludeTag(ownerTemplate);

            this.CopyTo(tag);
            tag.File    = this.File;
            tag.Charset = this.Charset;
            return(tag);
        }