Exemplo n.º 1
0
        private void CheckForLoop(Element parent, Element child)
        {
            while (parent != null)
            {
                if (parent == child)
                {
                    throw new InvalidOperationException("Loops in the document structure are not allowed.");
                }

                parent = parent.Parent;
            }
        }
 public static IElementRenderer Create(Element element)
 {
     return Factory.Create(element);
 }