You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Thrown when the internal encoding buffer cannot accommodate the encoded value.
75
+
/// </exception>
73
76
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","MA0051:Method is too long",Justification="Method contains local methods. Actual method only 55 lines.")]
/// Encodes a collection of <see cref="PolylineAlgorithm.Coordinate"/> instances into an encoded polyline.
21
+
/// Encodes a <see cref="List{T}"/> of <typeparamref name="TCoordinate"/> instances into an encoded polyline.
19
22
/// </summary>
23
+
/// <typeparam name="TCoordinate">The type that represents a geographic coordinate to encode.</typeparam>
24
+
/// <typeparam name="TPolyline">The type that represents the encoded polyline output.</typeparam>
20
25
/// <param name="encoder">
21
26
/// The <see cref="IPolylineEncoder{TCoordinate, TPolyline}"/> instance used to perform the encoding operation.
22
27
/// </param>
23
28
/// <param name="coordinates">
24
-
/// The sequence of <see cref="PolylineAlgorithm.Coordinate"/> objects to encode.
29
+
/// The list of <typeparamref name="TCoordinate"/> objects to encode.
25
30
/// </param>
26
31
/// <returns>
27
-
/// A <see cref="PolylineAlgorithm.Polyline"/> representing the encoded polyline string for the provided coordinates.
32
+
/// A <typeparamref name="TPolyline"/> instance representing the encoded polyline for the provided coordinates.
28
33
/// </returns>
29
34
/// <exception cref="ArgumentNullException">
30
-
/// Thrown when <paramref name="encoder"/> is <see langword="null"/>.
35
+
/// Thrown when <paramref name="encoder"/> or <paramref name="coordinates"/> is <see langword="null"/>.
31
36
/// </exception>
32
37
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1002:Do not expose generic lists",Justification="We need a list as we do need to marshal it as span.")]
33
38
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","MA0016:Prefer using collection abstraction instead of implementation",Justification="We need a list as we do need to marshal it as span.")]
@@ -49,19 +54,21 @@ public static TPolyline Encode<TCoordinate, TPolyline>(this IPolylineEncoder<TCo
49
54
50
55
51
56
/// <summary>
52
-
/// Encodes an array of <see cref="PolylineAlgorithm.Coordinate"/> instances into an encoded polyline.
57
+
/// Encodes an array of <typeparamref name="TCoordinate"/> instances into an encoded polyline.
53
58
/// </summary>
59
+
/// <typeparam name="TCoordinate">The type that represents a geographic coordinate to encode.</typeparam>
60
+
/// <typeparam name="TPolyline">The type that represents the encoded polyline output.</typeparam>
54
61
/// <param name="encoder">
55
62
/// The <see cref="IPolylineEncoder{TCoordinate, TPolyline}"/> instance used to perform the encoding operation.
56
63
/// </param>
57
64
/// <param name="coordinates">
58
-
/// The array of <see cref="PolylineAlgorithm.Coordinate"/> objects to encode.
65
+
/// The array of <typeparamref name="TCoordinate"/> objects to encode.
59
66
/// </param>
60
67
/// <returns>
61
-
/// A <see cref="PolylineAlgorithm.Polyline"/> representing the encoded polyline string for the provided coordinates.
68
+
/// A <typeparamref name="TPolyline"/> instance representing the encoded polyline for the provided coordinates.
62
69
/// </returns>
63
70
/// <exception cref="ArgumentNullException">
64
-
/// Thrown when <paramref name="encoder"/> is <see langword="null"/>.
71
+
/// Thrown when <paramref name="encoder"/> or <paramref name="coordinates"/> is <see langword="null"/>.
0 commit comments