diff --git a/Rest.Net/Rest.Net.csproj b/Rest.Net/Rest.Net.csproj index 7e06527..78df348 100644 --- a/Rest.Net/Rest.Net.csproj +++ b/Rest.Net/Rest.Net.csproj @@ -17,7 +17,7 @@ MontoyaTech.Rest.Net MontoyaTech.Rest.Net True - 1.7.3 + 1.7.4 Logo_Symbol_Black_Outline.png diff --git a/Rest.Net/RestCSharpClientGenerator.cs b/Rest.Net/RestCSharpClientGenerator.cs index 6b071ca..45f6b2a 100644 --- a/Rest.Net/RestCSharpClientGenerator.cs +++ b/Rest.Net/RestCSharpClientGenerator.cs @@ -263,15 +263,15 @@ namespace MontoyaTech.Rest.Net writer.WriteLine(")"); writer.WriteLine('{').Indent(); + + foreach (var field in fields) + writer.WriteLine($"this.{field.Name} = {field.Name};"); + + foreach (var property in properties) + writer.WriteLine($"this.{property.Name} = {property.Name};"); + + writer.Outdent().WriteLine('}'); } - - foreach (var field in fields) - writer.WriteLine($"this.{field.Name} = {field.Name};"); - - foreach (var property in properties) - writer.WriteLine($"this.{property.Name} = {property.Name};"); - - writer.Outdent().WriteLine('}'); } //Generate C# for any types that belong to this one.