mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-14 04:15:41 +00:00
Initialize _points field as null
This commit is contained in:
parent
5f53495817
commit
2f74ef5f50
@ -10,7 +10,7 @@ public struct Polygon : IEquatable<Polygon>
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The empty polygon. That is, a polygon with no points.
|
/// The empty polygon. That is, a polygon with no points.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly Polygon Empty = new(ArraySegment<Point>.Empty);
|
public static readonly Polygon Empty = new();
|
||||||
|
|
||||||
private Point[]? _points;
|
private Point[]? _points;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ public struct PolygonF
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The empty polygon. That is, a polygon with no points.
|
/// The empty polygon. That is, a polygon with no points.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly PolygonF Empty = new(ArraySegment<PointF>.Empty);
|
public static readonly PolygonF Empty = new();
|
||||||
|
|
||||||
private PointF[]? _points;
|
private PointF[]? _points;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user