1Imports System
2Imports System.Collections
3Imports System.Reflection
4
5Namespace GenericForEach1
6    Class G(Of T)
7        Sub Test()
8            Dim list As New Generic.List(Of T)
9            For Each item As T In list
10
11            Next
12        End Sub
13    End Class
14
15    Class Test
16        Shared Function Main() As Integer
17
18        End Function
19    End Class
20End Namespace