Inheritance: IHideObjectMembers
Exemple #1
0
        /// <summary>
        /// Executes the provided delegate to configure the child node.
        /// </summary>
        /// <param name="addActions">The add actions.</param>
        /// <returns></returns>
        public virtual SiteMapNodeBuilder ChildNodes(Action <SiteMapNodeFactory> addActions)
        {
            Guard.IsNotNull(addActions, "addActions");

            SiteMapNodeFactory factory = new SiteMapNodeFactory(siteMapNode);

            addActions(factory);

            return(this);
        }
        public SiteMapNodeBuilder ChildNodes(Action<SiteMapNodeFactory> addActions)
        {
            Guard.IsNotNull(addActions, "addActions");

            SiteMapNodeFactory factory = new SiteMapNodeFactory(siteMapNode);

            addActions(factory);

            return this;
        }