In C #, you can restrict the generic type:
public class Test<T> where T : SomeBaseClass
Can you do the same in Visual Basic?
Yes. You do it like:
Public Class Test(Of T As SomeBaseClass)
For more information, see Documentation on Constraints in Generic Types .