Пример #1
0
        /// <summary>
        /// Adds the specified path with name.
        /// </summary>
        /// <param name="pathWithName">Name of the path with.</param>
        /// <returns></returns>
        public virtual graphNodeCustom Add(String pathWithName)
        {
            List <String>   pathParts = pathWithName.SplitSmart(pathSeparator);
            graphNodeCustom head      = this;

            foreach (String part in pathParts)
            {
                head = head.CreateChildItem(part);
                Add(head);
                //head = head.Add(part);
            }

            return(head);
        }