Fix parse method to add IFormatProvider arg
authorjaehong Park <jay.ho.park@samsung.com>
Tue, 26 Oct 2021 02:42:29 +0000 (11:42 +0900)
committerjay-h-park <jay.ho.park@samsung.com>
Mon, 3 Jan 2022 02:14:58 +0000 (11:14 +0900)
src/Tizen.Nlp/Tizen.Nlp/NaturalLanguageProcess.cs

index dc90ce4..98c9560 100755 (executable)
@@ -17,6 +17,7 @@
 using System;
 using System.Collections.Generic;
 using System.Dynamic;
+using System.Globalization;
 using System.Linq;
 using System.Runtime.CompilerServices;
 using System.Threading.Tasks;
@@ -122,7 +123,7 @@ namespace Tizen.Nlp
                 result.Add("token", (string[])msg.GetItem("return_token"));
 
             if (msg.Contains("request_id"))
-                e.RequestId = requestid = int.Parse((string)msg.GetItem("request_id"));
+                e.RequestId = requestid = int.Parse((string)msg.GetItem("request_id"), NumberStyles.Integer, CultureInfo.InvariantCulture);
             else
                 return;