using global::System.Runtime.InteropServices;
using System.ComponentModel;
using System.Collections.Generic;
+using System.Globalization;
namespace Tizen.NUI.BaseComponents
{
string[] parts = pair.Split(',');
if (parts.Length == 1)
{
- return new LottieFrameInfo(Int32.Parse(parts[0].Trim()));
+ return new LottieFrameInfo(Int32.Parse(parts[0].Trim(), CultureInfo.InvariantCulture));
}
else if (parts.Length == 2)
{
- return new LottieFrameInfo(Int32.Parse(parts[0].Trim()), Int32.Parse(parts[1].Trim()));
+ return new LottieFrameInfo(Int32.Parse(parts[0].Trim(), CultureInfo.InvariantCulture), Int32.Parse(parts[1].Trim(), CultureInfo.InvariantCulture));
}
Tizen.Log.Error("NUI", $"Can not convert string {pair} to LottieFrameInfo");
using System;
using Tizen.NUI.Binding;
using System.ComponentModel;
+using System.Globalization;
namespace Tizen.NUI
{
R = Math.Min(1.0f, ((float)Convert.ToInt32(components[0], 10)) / 255.0f);
G = Math.Min(1.0f, ((float)Convert.ToInt32(components[1], 10)) / 255.0f);
B = Math.Min(1.0f, ((float)Convert.ToInt32(components[2], 10)) / 255.0f);
- A = Math.Min(1.0f, float.Parse(components[3]));
+ A = Math.Min(1.0f, float.Parse(components[3], CultureInfo.InvariantCulture));
}
}
}