Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore default constructors #833

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CSharp/Clipper2Lib/Clipper.Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ public readonly PathD AsPath()

public class Path64 : List<Point64>
{
public Path64() : base() { }
public Path64(int capacity = 0) : base(capacity) { }
public Path64(IEnumerable<Point64> path) : base(path) { }
public override string ToString()
Expand All @@ -486,6 +487,7 @@ public override string ToString()

public class Paths64 : List<Path64>
{
public Paths64() : base() { }
public Paths64(int capacity = 0) : base(capacity) { }
public Paths64(IEnumerable<Path64> paths) : base(paths) { }
public override string ToString()
Expand All @@ -499,6 +501,7 @@ public override string ToString()

public class PathD : List<PointD>
{
public PathD() : base() { }
public PathD(int capacity = 0) : base(capacity) { }
public PathD(IEnumerable<PointD> path) : base(path) { }
public string ToString(int precision = 2)
Expand All @@ -512,6 +515,7 @@ public string ToString(int precision = 2)

public class PathsD : List<PathD>
{
public PathsD() : base() { }
public PathsD(int capacity = 0) : base(capacity) { }
public PathsD(IEnumerable<PathD> paths) : base(paths) { }
public string ToString(int precision = 2)
Expand Down Expand Up @@ -784,4 +788,4 @@ public static PointInPolygonResult PointInPolygon(Point64 pt, Path64 polygon)

} // InternalClipper

} // namespace
} // namespace
Loading