From 0babd8b1c2fb9ea6c4f783c1f19a5dbabedacc69 Mon Sep 17 00:00:00 2001 From: "ankit.satapara@sspvtl.onmicrosoft.com" Date: Fri, 28 Aug 2020 14:39:06 +0530 Subject: [PATCH] Bool false is translated to False causing the compilation issue in Translator --- NetPrints/Translator/TranslatorUtil.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetPrints/Translator/TranslatorUtil.cs b/NetPrints/Translator/TranslatorUtil.cs index cacfdc3..32184ca 100644 --- a/NetPrints/Translator/TranslatorUtil.cs +++ b/NetPrints/Translator/TranslatorUtil.cs @@ -99,6 +99,10 @@ public static string ObjectToLiteral(object obj, TypeSpecifier type) { return $"{obj}M"; } + else if (type==TypeSpecifier.FromType()) + { + return obj.ToString().ToLower(); //Bool false is converted to False, causing the issue in compilation + } else { return obj.ToString();