title: Working with classes and lists
body: <p>I am trying to declare type Product and type Productlist
  can anyone tell me if this is right way to do it ?</p>
  
  <pre><code>Public Class Product
    Public Property name As String
    Public Property price As Double
  End Class
  Public Class ProductsList
    Public Property items() As New List(Of Product)
  End Class
  </code></pre>
  
  <p>I mean can I just write </p>
  
  <pre><code>Public Class Product
    Public Property name As String
    Public Property price As Double
  End Class
  
  Public property ProductsList as new List(Of Product)
  </code></pre>
  
  <p>instead ?</p>