Fixed an issue where built int Enums would be converted to int type for fields. Bumped package version to 1.4.3.
This commit is contained in:
parent
f2db3bddbf
commit
0c8467f942
@ -32,6 +32,8 @@ namespace MontoyaTech.Rest.Net.Example
|
|||||||
|
|
||||||
public class User : BaseUser
|
public class User : BaseUser
|
||||||
{
|
{
|
||||||
|
public PlatformID MachineType;
|
||||||
|
|
||||||
public string Name = null;
|
public string Name = null;
|
||||||
|
|
||||||
public List<string> List = null;
|
public List<string> List = null;
|
||||||
|
@ -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.4.2</Version>
|
<Version>1.4.3</Version>
|
||||||
<PackageReleaseNotes></PackageReleaseNotes>
|
<PackageReleaseNotes></PackageReleaseNotes>
|
||||||
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
|
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -215,6 +215,8 @@ namespace MontoyaTech.Rest.Net
|
|||||||
{
|
{
|
||||||
var typeCode = Type.GetTypeCode(type);
|
var typeCode = Type.GetTypeCode(type);
|
||||||
|
|
||||||
|
if (typeCode != TypeCode.Object && !type.IsEnum)
|
||||||
|
{
|
||||||
switch (typeCode)
|
switch (typeCode)
|
||||||
{
|
{
|
||||||
case TypeCode.Boolean:
|
case TypeCode.Boolean:
|
||||||
@ -247,7 +249,9 @@ namespace MontoyaTech.Rest.Net
|
|||||||
return "uint";
|
return "uint";
|
||||||
case TypeCode.UInt64:
|
case TypeCode.UInt64:
|
||||||
return "ulong";
|
return "ulong";
|
||||||
default:
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var builder = new StringBuilder();
|
var builder = new StringBuilder();
|
||||||
|
|
||||||
builder.Append(type.Namespace);
|
builder.Append(type.Namespace);
|
||||||
@ -278,7 +282,6 @@ namespace MontoyaTech.Rest.Net
|
|||||||
|
|
||||||
return builder.ToString();
|
return builder.ToString();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var builder = new StringBuilder();
|
var builder = new StringBuilder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user