Imports System.io
imports system
Public Module Module1
Public Sub Main()
dim s = new DirectoryInfo(".").GetFiles()
For each file in s
Thing(file) 'this is ok
next file
Thing(file) 'file is a type and cannot be used as an expression
End Sub
sub Thing(x as fileinfo)
end sub
End Module