Beispiel #1
0
        /// <summary>Creates builder nested into this builder</summary>
        /// <typeparam name="TBuilder">Type of nested builder</typeparam>
        /// <param name="container">Top container tag of this (parent) builder</param>
        /// <returns>Just newly created parent page builder with assigned top container</returns>
        public virtual TBuilder CreateBuilder <TBuilder>(ContainerTag container = null)
            where TBuilder : AbstractBuilder, new()
        {
            var builder = new TBuilder
            {
                ParentBuilder = this,
                TopContainer  = container
            };

            builder.FireOnCreateBuilder(builder);
            return(builder);
        }
Beispiel #2
0
 /// <summary>This method must be overriden. It creates tag hierarchy</summary>
 /// <param name="container">Container in which nested tags to be created</param>
 /// <returns>Root tag</returns>
 public abstract ContainerTag CreateTagTree(ContainerTag container);