Skip to content

Commit a377784

Browse files
Copilotpetesramek
andauthored
Fix remaining wrong PolylineOptions type args in NotSupportedException messages in AbstractPolylineDecoder
Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/f4994093-4128-4101-b5df-f6a031463712 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 794cbf7 commit a377784

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ protected virtual void ValidateFormat(ReadOnlyMemory<char> sequence, ILogger? lo
264264
protected virtual ReadOnlyMemory<char> GetReadOnlyMemory(in TPolyline polyline) {
265265
throw new NotSupportedException(
266266
$"Override {nameof(GetReadOnlyMemory)} in a derived class, or provide a " +
267-
$"{nameof(PolylineOptions<TPolyline, TCoordinate>)} with a polyline formatter.");
267+
$"{nameof(PolylineOptions<TCoordinate, TPolyline>)} with a polyline formatter.");
268268
}
269269

270270
/// <summary>
@@ -287,6 +287,6 @@ protected virtual ReadOnlyMemory<char> GetReadOnlyMemory(in TPolyline polyline)
287287
protected virtual TCoordinate CreateCoordinate(double latitude, double longitude) {
288288
throw new NotSupportedException(
289289
$"Override {nameof(CreateCoordinate)} in a derived class, or provide a " +
290-
$"{nameof(PolylineOptions<TPolyline, TCoordinate>)} with a value formatter.");
290+
$"{nameof(PolylineOptions<TCoordinate, TPolyline>)} with a value formatter.");
291291
}
292292
}

0 commit comments

Comments
 (0)