Exemple #1
0
        // This is a very special extension - it allows adding a child using fluent style and switches the current chaining object to the child
        // behind the scenes the parent start is immediately output and the child ends the parent when it ends (so that the while hierarchy gets output)
        public static ComponentWrapper <TConfig, TTag> WithChild <TConfig, TTag>(this ComponentBuilder <TConfig, TTag> builder)
            where TConfig : BootstrapConfig
            where TTag : Tag
        {
            ComponentWrapper <TConfig, TTag> wrapper = builder.Begin();

            wrapper.WithChild = true;
            return(wrapper);
        }