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