From 2fced0f6342a4594c2f8a000cef9f266a2e68d66 Mon Sep 17 00:00:00 2001 From: nmonterroso Date: Mon, 22 Jun 2015 21:12:13 -0700 Subject: [PATCH] Revert "Updates to csharp model template to support inheritance" This reverts commit 5f1df9e093eaf7b584c98879b4e05dcf1ac8c58f. --- .../src/main/resources/csharp/model.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/csharp/model.mustache b/modules/swagger-codegen/src/main/resources/csharp/model.mustache index 111c98993a29..ce0e62de1920 100644 --- a/modules/swagger-codegen/src/main/resources/csharp/model.mustache +++ b/modules/swagger-codegen/src/main/resources/csharp/model.mustache @@ -13,7 +13,7 @@ namespace {{package}} { /// {{description}} /// [DataContract] - public class {{classname}}{{#parent}} : {{{parent}}}{{/parent}} { + public class {{classname}} { {{#vars}} {{#description}}/* {{{description}}} */{{/description}} [DataMember(Name="{{baseName}}", EmitDefaultValue=false)] @@ -39,11 +39,11 @@ namespace {{package}} { /// Get the JSON string presentation of the object /// /// JSON string presentation of the object - public {{#parent}} new {{/parent}}string ToJson() { + public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } {{/model}} {{/models}} -} \ No newline at end of file +}