title: C# problems with FileInfo List(add Image)
body: <p>How can I insert <code>Image</code> object into <code>FileInfo</code> list?</p>
  
  <p>I have a list with images of this type</p>
  
  <pre><code>public  List&lt;FileInfo&gt; _imagesList = new List&lt;FileInfo&gt;();
  </code></pre>
  
  <p>But I need to add image to this list using a method like this one:</p>
  
  <pre><code>public void AddImage(Image img)
  {
  
  }
  </code></pre>
  
  <p>I tried using this method</p>
  
  <pre><code> public void AddImage(string pathToImage)
      {
          try
          {
              FileInfo file = new FileInfo(pathToImage);
                   _imagesList.Add(file);
          }
          catch (Exception e)
          {
              MessageBox.Show("Не удалось загрузить изображение. Ошибка : " + e);
          }
  
      }
  </code></pre>