title: c# Get object property from ArrayList
body: <p>Can't figure this one out</p>
  
  <p>I have an ArrayList of classes:</p>
  
  <pre><code>        // Holds an image
          public class productImage
          {
              public int imageID;
              public string imageURL;
              public DateTime dateAdded;
              public string slideTitle;
              public string slideDescrip;
          }
  
      public ArrayList productImages = new ArrayList();
  
  productImage newImage = new productImage();
  newImage.imageID = 123;
  productImages.Add(newImage);
  </code></pre>
  
  <p>Now how do I access the property?</p>
  
  <pre><code>int something = productImages[0].imageID
  </code></pre>
  
  <p>Doesn't work!</p>
  
  <blockquote>
    <p>Error 1   'object' does not contain a
    definition for 'slideTitle' and no
    extension method 'slideTitle'
    accepting a first argument of type
    'object' could be found (are you
    missing a using directive or an
    assembly reference?)</p>
  </blockquote>