mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 22:55:42 +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>
|
||||
/// The empty polygon. That is, a polygon with no points.
|
||||
/// </summary>
|
||||
public static readonly Polygon Empty = new(ArraySegment<Point>.Empty);
|
||||
public static readonly Polygon Empty = new();
|
||||
|
||||
private Point[]? _points;
|
||||
|
||||
|
@ -12,7 +12,7 @@ public struct PolygonF
|
||||
/// <summary>
|
||||
/// The empty polygon. That is, a polygon with no points.
|
||||
/// </summary>
|
||||
public static readonly PolygonF Empty = new(ArraySegment<PointF>.Empty);
|
||||
public static readonly PolygonF Empty = new();
|
||||
|
||||
private PointF[]? _points;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user