Fixed a minor bug with the GetValue Javascript generated function. Bumped package version to 1.6.2
This commit is contained in:
parent
9367ba0ff5
commit
ac2f63229c
@ -17,7 +17,7 @@
|
|||||||
<AssemblyName>MontoyaTech.Rest.Net</AssemblyName>
|
<AssemblyName>MontoyaTech.Rest.Net</AssemblyName>
|
||||||
<RootNamespace>MontoyaTech.Rest.Net</RootNamespace>
|
<RootNamespace>MontoyaTech.Rest.Net</RootNamespace>
|
||||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||||
<Version>1.6.1</Version>
|
<Version>1.6.2</Version>
|
||||||
<PackageReleaseNotes></PackageReleaseNotes>
|
<PackageReleaseNotes></PackageReleaseNotes>
|
||||||
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
|
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -329,7 +329,7 @@ namespace MontoyaTech.Rest.Net
|
|||||||
writer.WriteLine("switch (name.toLowerCase().trim()) {").Indent();
|
writer.WriteLine("switch (name.toLowerCase().trim()) {").Indent();
|
||||||
|
|
||||||
for (int i = 0; i < names.Length; i++)
|
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.Outdent().WriteLine("}");
|
||||||
writer.WriteLine("return null;");
|
writer.WriteLine("return null;");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user