How can I cast a list in VB

1

I'm starting to program in Visual Basic and I need to cast of a list of objects.

Below is the example of a class that contains a list of products in one of its attributes.

Public Class KnackParsedJSon
    Public total_pages As Integer
    Public current_page As Integer
    Public total_records As Integer
    Public records As New List(Of Product)
End Class

I would like to store in the list records objects of type Supplier ?

    
asked by anonymous 13.11.2016 / 14:14

0 answers