I have the following base class that uses Generics in its definition.
MyList(of T, C) - T is a BindingList(Of C), C is the type
in the list
I have many implemented classes that use this definition...
Class A ( of A, C)
Class B(of B,C) and so on.
Now I want to write a class that has a variable to which ANY of the derived
classes
of MyList(of T,C) can be assigned.
What is the syntax? When I try to tell the system that the type of the
variable is "MyList" it proceeds assuming that I'm making a derivative class
and wants me
to specify what types "T" and "C" are.
How do I do this?
Thanks.
MyList(of T, C) - T is a BindingList(Of C), C is the type
in the list
I have many implemented classes that use this definition...
Class A ( of A, C)
Class B(of B,C) and so on.
Now I want to write a class that has a variable to which ANY of the derived
classes
of MyList(of T,C) can be assigned.
What is the syntax? When I try to tell the system that the type of the
variable is "MyList" it proceeds assuming that I'm making a derivative class
and wants me
to specify what types "T" and "C" are.
How do I do this?
Thanks.
Comment