作者:VB.NET开发
项目:Syste
' 导入命名空间
Imports System.Collections
Imports System.Collections.Generic
Module Example
Public Sub Main()
Dim types() As Type = { GetType(String), GetType(Integer()),
GetType(ArrayList), GetType(Array),
GetType(List(Of String)),
GetType(IEnumerable(Of Char)) }
For Each t In types
Console.WriteLine("{0,-15} IsArray = {1}", t.Name + ":", t.IsArray)
Next
End Sub
End Module