title: vb.net - add object to arraylist
body: <p>I'm having some trouble adding an object to an arraylist.</p>
  
  <p>Basically the object has two properties (file id/name), but I can't figure out how to assign those properties. During runtime it errors out with public member on the object not found.</p>
  
  <pre><code>Private QueueList As New ArrayList
  Public Sub Queue(ByVal FileName As String, ByVal FileID As Integer)
      Dim QueueObj As New Object
      QueueObj.FileID = "Test 1"
      QueueObj.FileName = "Test 2"
      QueueList.Add(QueueObj)
  End Sub
  </code></pre>
  
  <p>I'd also like to know how I can do a loop on the arraylist and access the two properites on each record.</p>
  
  <p>Thanks!</p>