diff --git a/src/generators/csharp/renderers/EnumRenderer.ts b/src/generators/csharp/renderers/EnumRenderer.ts index 7d2850d9bb..a7e53d1040 100644 --- a/src/generators/csharp/renderers/EnumRenderer.ts +++ b/src/generators/csharp/renderers/EnumRenderer.ts @@ -33,9 +33,7 @@ return null;`; ${this.indent(enumValueSwitch)} } -public static ${this.model.name}? To${this.model.name}(${ - this.model.type - }? value) +public static ${this.model.name}? To${this.model.name}(dynamic? value) { ${this.indent(valueSwitch)} }`;