-1
  Ipoint declared as New Point showing the error . 

"'Point' is ambiguous,imported from the namespace or types 'ESRI.ArcGIS.Geometry,System.Drawing'"

2 Answers2

0

Simply declare the used namespace by writing

ESRI.ArcGIS.Geometry.Point myPoint = new ESRI.ArcGIS.Geometry.Point();

Or try removing unused usings to avoid such ambiguousnesses.

Chrᴉz remembers Monica
  • 1,829
  • 1
  • 10
  • 24
0

In such cases, you can choose to either fully qualify one or both of those, or you can use an alias when you import as follows:

using ESRI.ArcGIS.Geometry;
using drw = System.Drawing; // I tend to do this for the one I'll use less.

static void UseThisInAnExample()
{
    // Create a point from arc gis...
    var declared = new Point();
    // Create the normal system drawing one....
    var theOtherOne = new drw.Point(5, 5);
}
Fabulous
  • 2,393
  • 2
  • 20
  • 27