AdjustSdk.Uap.UtilUap.GetCountry C# (CSharp) 메소드

GetCountry() 공개 정적인 메소드

public static GetCountry ( ) : string
리턴 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;
        }