Add [DebuggerDisplay()] attribute to the major structs & classes in the Pro's SDK

07-31-2023 03:18 PM
Status: Open
Labels (1)
Occasional Contributor II

Please, add [DebuggerDisplay()] attribute to the major struct & and classes like:

  1. Coordinate2D & Coordinate3D to see the actual value instead of "{ArcGIS.Core.Geometry.Coordinate2D}" and  "{ArcGIS.Core.Geometry.Coordinate3D}". If it is empty, just print "Empty" otherwise the coordinates like "18.46; 46.18".
  2. MapPoint: same as above, with wkid, like "18.46; 46.18; 4326".
  3. Polyline & Polygon: use Length, Length & Area (if not empty).
  4. GeographicTransformationListEntry: every entry has its own name. This could be the natural DebuggerDisplay for it, like "Hungarian_1972_To_WGS_1984_2", or maybe "Hungarian_1972_To_WGS_1984_2; 4327 → 4326" (two wkids at the end).
  5. CoordinateSystemListEntry: same as above, just use the Name property.
  6. SpatialReference: the name would be more natural.

This will improve the development experience a lot.