About the recursion for Arraylist

  • Thread starter Thread starter gaxjyxq
  • Start date Start date
G

gaxjyxq

Guest
Public Shared Function GetNodeText(ByVal nc As NodeCollection) As ArrayList
Dim alText As New ArrayList
For Each node As Node In nc
alText.Add(node.Text)
If node.HasChildNodes Then
alText = alText.AddRange(GetNodeText(node.Nodes))' How to do???
End If
Next
Return alText
End Function

Continue reading...
 
Back
Top