diff --git a/MN.L10n/L10n.cs b/MN.L10n/L10n.cs index 3bb7de8..2eea170 100644 --- a/MN.L10n/L10n.cs +++ b/MN.L10n/L10n.cs @@ -133,7 +133,11 @@ public static long GetCount(object args = null) var t = args.GetType(); foreach (var p in t.GetProperties()) { - if (p.Name == "__count") return (long)p.GetValue(args); + if (p.Name == "__count") + { + long.TryParse(p.GetValue(args).ToString(), out long __count); + return __count; + } } return 0; diff --git a/MN.L10n/MN.L10n.csproj b/MN.L10n/MN.L10n.csproj index d2d3a7b..c91da33 100644 --- a/MN.L10n/MN.L10n.csproj +++ b/MN.L10n/MN.L10n.csproj @@ -12,7 +12,7 @@ Translation package https://github.com/MultinetInteractive/MN.L10n git © 20XX MultiNet Interactive AB - 1.0.100 + 1.0.101 True