ArcGIS Pro 2.7 API Reference Guide
Coordinate2D Constructor(Double,Double)
Example 

ArcGIS.Core.Geometry Namespace > Coordinate2D Structure > Coordinate2D Constructor : Coordinate2D Constructor(Double,Double)
X value. This is longitude when working with geographic coordinates.
Y value. This is latitude when working with geographic coordinates.
Represents a Coordinate2D with an X and Y value.
Syntax
public Coordinate2D( 
   double x,
   double y
)
Public Function New( _
   ByVal x As Double, _
   ByVal y As Double _
)

Parameters

x
X value. This is longitude when working with geographic coordinates.
y
Y value. This is latitude when working with geographic coordinates.
Example
List<Coordinate2D> outerCoordinates = new List<Coordinate2D>();
outerCoordinates.Add(new Coordinate2D(10.0, 10.0));
outerCoordinates.Add(new Coordinate2D(10.0, 20.0));
outerCoordinates.Add(new Coordinate2D(20.0, 20.0));
outerCoordinates.Add(new Coordinate2D(20.0, 10.0));

// Builder constructors need to run on the MCT.
ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
  // use the PolygonBuilder as we wish to manipulate the parts
  using (PolygonBuilder pb = new PolygonBuilder(outerCoordinates))
  {
    Polygon donut = pb.ToGeometry();
    double area = donut.Area;       // area = 100

    // define the inner polygon as anti-clockwise
    List<Coordinate2D> innerCoordinates = new List<Coordinate2D>();
    innerCoordinates.Add(new Coordinate2D(13.0, 13.0));
    innerCoordinates.Add(new Coordinate2D(17.0, 13.0));
    innerCoordinates.Add(new Coordinate2D(17.0, 17.0));
    innerCoordinates.Add(new Coordinate2D(13.0, 17.0));

    pb.AddPart(innerCoordinates);
    donut = pb.ToGeometry();

    area = donut.Area;    // area = 84.0

    area = GeometryEngine.Instance.Area(donut);    // area = 84.0
  }
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Coordinate2D Structure
Coordinate2D Members
Overload List