예제 #1
0
        //- deletes all custom cultures intended for country identified by EIDSS country ID
        public static void UnRegister(string countryCode)
        {
            if (!CountryCodes.ContainsValue(countryCode.ToUpperInvariant()))
            {
                throw new Exception(string.Format("\'{0}\' - Unsupported country code.", countryCode));
            }

            foreach (long countryID in CountryCodes.Keys)
            {
                if (CountryCodes[countryID] == countryCode.ToUpperInvariant())
                {
                    UnRegister(countryID);
                }
            }
        }