AdjustSdk.Uap.UtilUap.GetCountry C# (CSharp) Method

GetCountry() public static method

public static GetCountry ( ) : string
return string
        public static string GetCountry()
        {
            CultureInfo currentCulture = CultureInfo.CurrentCulture;
            string cultureName = currentCulture.Name;
            int length = cultureName.Length;
            if (length < 2)
            {
                return null;
            }

            string substring = cultureName.Substring(length - 2, 2);
            string country = substring.ToLower();
            return country;
        }