ApiExamples.MergeField.FindNextSibling C# (CSharp) Метод

FindNextSibling() приватный статический Метод

Goes through siblings starting from the start node until it finds a node of the specified type or null.
private static FindNextSibling ( Node startNode, NodeType nodeType ) : Node
startNode Node
nodeType NodeType
Результат Node
        private static Node FindNextSibling(Node startNode, NodeType nodeType)
        {
            for (Node node = startNode; node != null; node = node.NextSibling)
            {
                if (node.NodeType.Equals(nodeType))
                    return node;
            }
            return null;
        }