通用類的例項

通過建立具有給定的不同型別的相同類的例項,類的介面根據給定的型別而改變。

Dim theStringClass As New SomeClass(Of String)
Dim theIntegerClass As New SomeClass(Of Integer)

StackOverflow 文件