File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/swagger-codegen/src/main/resources/csharp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace {{package}} {
13
13
/// {{description} }
14
14
/// </summary >
15
15
[DataContract]
16
- public class { {classname} } {
16
+ public class { {classname} }{ {#parent } } : { {{parent } }} { {/parent } } {
17
17
{{#vars} }
18
18
{ {#description} }/* { {{description} }} */{ {/description} }
19
19
[DataMember(Name="{ {baseName} }", EmitDefaultValue=false)]
@@ -39,11 +39,11 @@ namespace {{package}} {
39
39
/// Get the JSON string presentation of the object
40
40
/// </summary >
41
41
/// <returns >JSON string presentation of the object</returns >
42
- public string ToJson() {
42
+ public { {#parent } } new { {/parent } } string ToJson() {
43
43
return JsonConvert.SerializeObject(this, Formatting.Indented);
44
44
}
45
45
46
46
}
47
47
{ {/model} }
48
48
{ {/models} }
49
- }
49
+ }
You can’t perform that action at this time.
0 commit comments