public static IPolygon GetPolygon([NotNull] IEnumerable <WKSPointVA> points) { Assert.ArgumentNotNull(points, nameof(points)); IPointCollection5 mps = new MultipointClass(); foreach (WKSPointVA point in points) { WKSPointVA p = point; mps.InsertWKSPointVA(0, 1, ref p); } IPointCollection poly = new PolygonClass(); poly.AddPointCollection(mps); return((IPolygon)poly); }