StoryTeller.Persistence.WriterVisitor.StartSection C# (CSharp) Метод

StartSection() публичный Метод

public StartSection ( Section section ) : void
section Section
Результат void
        public void StartSection(Section section)
        {
            try
            {
                INode parent = _nodes.Peek();
                if (section.Description.IsNotEmpty())
                {
                    parent.AddComment(section.Description);
                }

                INode element = parent.AddChild(section.FixtureName);
                _nodes.Push(element);
            }
            catch (Exception e)
            {
                throw new ApplicationException(
                    "Could not create element for Section '{0}'".ToFormat(section.FixtureName), e);
            }
        }