public static SciterGraphics DrawPolygon(this SciterGraphics graphics, IEnumerable <PolygonPoint> points) { if (points?.Any() != true) { throw new ArgumentNullException(nameof(points), @"Cannot be null."); } graphics?.DrawPolygonInternal(points: points); return(graphics); }