Fixed a minor bug with the GetValue Javascript generated function. Bumped package version to 1.6.2

This commit is contained in:
MattMo 2023-06-16 10:28:31 -07:00
parent 9367ba0ff5
commit ac2f63229c
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
<AssemblyName>MontoyaTech.Rest.Net</AssemblyName>
<RootNamespace>MontoyaTech.Rest.Net</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Version>1.6.1</Version>
<Version>1.6.2</Version>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
</PropertyGroup>

View File

@ -329,7 +329,7 @@ namespace MontoyaTech.Rest.Net
writer.WriteLine("switch (name.toLowerCase().trim()) {").Indent();
for (int i = 0; i < names.Length; i++)
writer.WriteLine($"case '{names.GetValue(i).ToString().ToLower()}': return {values.GetValue(i)};");
writer.WriteLine($"case '{names.GetValue(i).ToString().ToLower()}': return {Convert.ToInt32(values.GetValue(i))};");
writer.Outdent().WriteLine("}");
writer.WriteLine("return null;");