Skip to content

Commit cdc34c8

Browse files
author
Petr Sramek
committed
added documentation for PolylineEncoder
1 parent b54819f commit cdc34c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/PolylineAlgorithm/PolylineEncoder.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ public Polyline Encode(IEnumerable<Coordinate> coordinates) {
4545

4646
return writer.ToPolyline();
4747

48+
/// <summary>
49+
/// Gets the count of coordinates in the enumerable.
50+
/// </summary>
51+
/// <param name="coordinates">The enumerable of coordinates.</param>
52+
/// <returns>The count of coordinates.</returns>
4853
[ExcludeFromCodeCoverage]
4954
[MethodImpl(MethodImplOptions.AggressiveInlining)]
5055
static int GetCount(ref readonly IEnumerable<Coordinate> coordinates) => coordinates switch {
5156
ICollection<Coordinate> collection => collection.Count,
5257
_ => coordinates.Count(),
5358
};
5459
}
55-
}
60+
}

0 commit comments

Comments
 (0)