ApiExamples.ExNode.GetParentNode C# (CSharp) Метод

GetParentNode() приватный Метод

private GetParentNode ( ) : void
Результат void
	    public void GetParentNode()
	    {
            //ExStart
            //ExFor:Node.ParentNode
            //ExId:AccessParentNode
            //ExSummary:Shows how to access the parent node.
            // Create a new empty document. It has one section.
            Document doc = new Document();

            // The section is the first child node of the document.
            Node section = doc.FirstChild;

            // The section's parent node is the document.
            Console.WriteLine("Section parent is the document: " + (doc == section.ParentNode));
            //ExEnd

            Assert.AreEqual(doc, section.ParentNode);
        }