I have a form that collects information for a specific table.
The requirements have changed and you can now pick up from another table. The tables have exactly the same structure so I want to take advantage of the form to store in both tables.
I know I could pass the name of the table to the form and do my checks and inserts but what I try is to pass the type of object to use the methods and functions of my classes.
The type is passed as Public Property Clase As Type
and the problem I have when I try to make a list of objects of that type Dim lstResumen As New List(Of Clase)
.
How could I make a List(Of
of a type passed to the form?
I am developing in Vb .Net Framework 4.