GetNextSiblingUp() private method

private GetNextSiblingUp ( ) : PolyNode
return PolyNode
 internal PolyNode GetNextSiblingUp()
 {
     if (m_Parent == null)
     {
         return(null);
     }
     if (m_Index == m_Parent.m_Childs.Count - 1)
     {
         return(m_Parent.GetNextSiblingUp());
     }
     return(m_Parent.m_Childs[m_Index + 1]);
 }
 internal PolyNode GetNextSiblingUp()
 {
     if (m_parent == null)
     {
         return(null);
     }
     else if (m_index == m_parent.m_childNodes.Count - 1)
     {
         return(m_parent.GetNextSiblingUp());
     }
     else
     {
         return(m_parent.m_childNodes[m_index + 1]);
     }
 }