ArcGIS Pro 2.7 API Reference Guide
IsEqual(Polygon) Method

ArcGIS.Core.Geometry Namespace > Polygon Class > IsEqual Method : IsEqual(Polygon) Method
A geometry to test for equality.
Compares two Polygon for equality. This will check that the SpatialReference, attribute awareness (HasZ, HasM, HasID), and the content of Multipart.Parts match. The order of parts must match too.
Syntax
public bool IsEqual( 
   Polygon other
)
Public Overloads Function IsEqual( _
   ByVal other As Polygon _
) As Boolean

Parameters

other
A geometry to test for equality.

Return Value

Value to indicate if the two geometries are equal.
Remarks
To compare two geometries regardless of their point order you can use the Equals(Geometry,Geometry) method. GeometryEngine.Equals is a little more costly to compute.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Polygon Class
Polygon Members
Overload List