@@ -3,29 +3,29 @@ using (var enumerator = {{ parameter.VariableName }}.GetEnumerator())
3
3
{
4
4
if (enumerator.MoveNext())
5
5
{
6
- urlBuilder_.Append(System.Uri.EscapeDataString(enumerator.Current.ToString("{{ ParameterDateTimeFormat }}", System.Globalization.CultureInfo.InvariantCulture)));
7
-
8
6
do
9
7
{
10
- urlBuilder_.Append(',');
11
8
urlBuilder_.Append(System.Uri.EscapeDataString(enumerator.Current.ToString("{{ ParameterDateTimeFormat }}", System.Globalization.CultureInfo.InvariantCulture)));
9
+ urlBuilder_.Append(',');
12
10
}
13
11
while (enumerator.MoveNext());
12
+
13
+ urlBuilder_.Length--;
14
14
}
15
15
}
16
16
{% elsif parameter .IsDateArray -%}
17
17
using (var enumerator = {{ parameter .VariableName }}.GetEnumerator())
18
18
{
19
19
if (enumerator.MoveNext())
20
20
{
21
- urlBuilder_.Append(System.Uri.EscapeDataString(enumerator.Current.ToString("{{ ParameterDateFormat }}", System.Globalization.CultureInfo.InvariantCulture)));
22
-
23
21
do
24
22
{
25
- urlBuilder_.Append(',');
26
23
urlBuilder_.Append(System.Uri.EscapeDataString(enumerator.Current.ToString("{{ ParameterDateFormat }}", System.Globalization.CultureInfo.InvariantCulture)));
24
+ urlBuilder_.Append(',');
27
25
}
28
26
while (enumerator.MoveNext());
27
+
28
+ urlBuilder_.Length--;
29
29
}
30
30
}
31
31
{% elsif parameter .IsDateTime -%}
@@ -37,14 +37,14 @@ using (var enumerator = {{ parameter.VariableName }}.GetEnumerator())
37
37
{
38
38
if (enumerator.MoveNext())
39
39
{
40
- urlBuilder_.Append(ConvertToString(enumerator.Current, System.Globalization.CultureInfo.InvariantCulture));
41
-
42
40
do
43
41
{
44
- urlBuilder_.Append(',');
45
42
urlBuilder_.Append(ConvertToString(enumerator.Current, System.Globalization.CultureInfo.InvariantCulture));
43
+ urlBuilder_.Append(',');
46
44
}
47
45
while (enumerator.MoveNext());
46
+
47
+ urlBuilder_.Length--;
48
48
}
49
49
}
50
50
{% else -%}
0 commit comments