title: Convert Image list to Image array
body: <p>looked at a few examples , Following the examples my code now looks like this (See Below) , However unfortunately I'm getting the error 
  "'System.Windows.Forms.ImageList' does not contain a definition for 'toArray' and no extension method 'toArray' accepting a first argument of type 'System.Windows.Forms.ImageList' could be found (are you missing a using directive or an assembly reference?)"</p>
  
  <p>Any ideas ? I may have missed a part shown in other posts but i dont think so</p>
  
  <pre><code>ImageList Move_list = new ImageList();
  .
  .
  .
  //Gather the images
  string        path          = "C:/Pictures/Movements/User";
  string[]      filter        = { ".jpg", ".jpeg"};
  DirectoryInfo directoryInfo = new DirectoryInfo(path);
  FileInfo[]    fileInfo      = directoryInfo.GetFiles();
  ArrayList     arrayList     = new ArrayList();
  
  foreach (FileInfo fi in fileInfo)
    foreach (string s in filter)
      if (s == fi.Extension)
        arrayList.Add(fi.FullName);
  
  //adding files to image list:
  for (i = 0; i &lt; arrayList.Count; i++)
  {
    System.Drawing.Image img = System.Drawing.Image.FromFile(arrayList[i].ToString());
    Move_list.Images.Add(img);
  }
  
  User_moves[0] =  Move_list.toArray();
  </code></pre>