示例#1
0
文件: Tag.T.cs 项目: 2sic/razor-blade
        /// <summary>
        /// Add contents to this tag - at the end of the already added contents.
        /// If you want to replace the contents, use Wrap() instead
        /// </summary>

        /// <param name="children">a variable amount of tags / strings to add to the contents of this tag</param>
        /// <returns></returns>
        public T Add(params object[] children)
        {
            TagChildren.Add(children);
            return(this as T);
        }
示例#2
0
文件: Tag.T.cs 项目: 2sic/razor-blade
        /// <summary>
        /// Add contents to this tag - at the end of the already added contents.
        /// If you want to replace the contents, use Wrap() instead
        /// </summary>

        /// <param name="child"></param>
        /// <returns></returns>
        public T Add(object child)
        {
            TagChildren.Add(child);
            return(this as T);
        }