title: workaround to VB.Net 2003 System.Collections.Generic?
body: <p>I'm working in an old web application (vb.net 2003) and I'm trying to use a generic list of a custom class.</p>
  
  <p>I realized that System.Collections.Generic was introduced in .Net 2 according to <a href="https://stackoverflow.com/questions/7497790/does-vb-net-2003-support-system-collections-generic">link</a></p>
  
  <p>Is there any alternative to the list? For instance an array of class?</p>
  
  <p>Let's say I have the following class definition:</p>
  
  <pre><code>Public Class Box
    Public x As Integer
    Public y As Integer
  End Class
  </code></pre>
  
  <p>And an array of Class Box:</p>
  
  <pre><code>Dim BoxList() As Box
  BoxList(0).x = 1
  BoxList(0).y = 1
  
  BoxList(1).x = 2
  BoxList(2).y = 2
  </code></pre>
  
  <p>But I'm getting an error when <code>BoxList(0).x = 1</code> error: <code>Object reference not set to an instance of an object</code></p>
  
  <p>I'm just guessing here.</p>