... how can I enable "For Each" enumeration over a variable declared as clsFolders with code like below? I've read about IEnumerable, which I assume is needed here, but I'm not tracking and any syntax I've attempted is incorrect.
Public Class clsFolder Public Name As String Public Size as Integer End Class Public Class clsFolders Dim oFolders As New List(Of clsFolder) End Class
Dim fols As New clsFolders For Each fol As clsFolder In fols ' Gives compile error on "fols" above Next
Do more with