public static void Reverse(IPointCollection pts) { IEnumerable <IMapPoint> reversedPts = pts.Reverse(); IPointCollection newPts = Runtime.geometryEngine.newPointCollection(); foreach (IMapPoint pt in reversedPts) { newPts.Add(pt); } pts = Runtime.geometryEngine.newPointCollection(); foreach (IMapPoint pt in newPts) { pts.Add(pt); } }
public static void Reverse(IPointCollection pts) { IEnumerable<IMapPoint> reversedPts = pts.Reverse(); IPointCollection newPts = Runtime.geometryEngine.newPointCollection(); foreach (IMapPoint pt in reversedPts) newPts.Add(pt); pts = Runtime.geometryEngine.newPointCollection(); foreach (IMapPoint pt in newPts) pts.Add(pt); }