Skip to content

Commit a058497

Browse files
committed
Add a default constructor for GpxTrackSegment.
Fixes #22
1 parent c713e3b commit a058497

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

doc/release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# NetTopologySuite.IO.GPX Release Notes
22

3+
## [0.2.1](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/milestone/5)
4+
- Add a default constructor for `GpxTrackSegment` so that its `.WithX` methods are actually meaningful ([#22](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/issues/22)).
5+
36
## [0.2.0](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/milestone/2)
47
- Give most data objects constructors and `.WithX` methods to make it easier to create instances that only set a few members ([#13](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/issues/13)).
58
- Add `GpxFile` as a significantly easier way to read + write our underlying data object representation all in one go ([#12](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/issues/12) / [#14](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/issues/14)).

src/NetTopologySuite.IO.GPX/GpxTrackSegment.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Xml;
54
using System.Xml.Linq;
65

@@ -14,6 +13,13 @@ namespace NetTopologySuite.IO
1413
/// </remarks>
1514
public sealed class GpxTrackSegment
1615
{
16+
/// <summary>
17+
/// Initializes a new instance of the <see cref="GpxTrackSegment"/> class.
18+
/// </summary>
19+
public GpxTrackSegment()
20+
{
21+
}
22+
1723
/// <summary>
1824
/// Initializes a new instance of the <see cref="GpxTrackSegment"/> class.
1925
/// </summary>

0 commit comments

Comments
 (0)