-1

ATTENTION: The class is in a my external DLL implemented in my project. Inside my class library there is this class Annuncio with a list inside. The list must contain images, but my code gives me an error.

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace BuyNowDLL
{
    class Annuncio
    {
       public List<Image> Images1 = new List<Image>();  //Make me error (Image)
    }
}

How can I fix it?

enter image description here

jck91
  • 11
  • 1

1 Answers1

0

Your code does not have any errors, it is because you have not referenced the System.Drawing.dll

Right click on the project name in the solution explorer, and click on Add > Reference

then choose check System.Drawing in the list of Assemblies.

enter image description here

enter image description here

Ashkan Mobayen Khiabani
  • 33,575
  • 33
  • 102
  • 171