Revert "Updates to csharp model template to support inheritance"

This reverts commit 5f1df9e093.
This commit is contained in:
nmonterroso 2015-06-22 21:12:13 -07:00
parent 60b0ffeb0e
commit 2fced0f634

View File

@ -13,7 +13,7 @@ namespace {{package}} {
/// {{description}}
/// </summary>
[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
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public {{#parent}} new {{/parent}}string ToJson() {
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
{{/model}}
{{/models}}
}
}