diff --git a/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/requests/CsharpHttpRequestRenderer.kt b/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/requests/CsharpHttpRequestRenderer.kt index c7bbaebf..8d4673f2 100644 --- a/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/requests/CsharpHttpRequestRenderer.kt +++ b/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/requests/CsharpHttpRequestRenderer.kt @@ -198,8 +198,11 @@ class CsharpHttpRequestRenderer constructor(override val vrapTypeProvider: VrapT return "$fieldName.JsonName" if(type == "string") return fieldName - else + if(type == "decimal" || type == "int" || type == "long") { return "$fieldName.ToString(CultureInfo.InvariantCulture)" + } + else + return "$fieldName.ToString()" } private fun Method.queryParamsGetters() : String = this.queryParameters