Exemplo n.º 1
0
        private CldrLanguageData GetLangData(string language)
        {
            language = language.ToLowerInvariant();

            lock (_locker)
            {
                if (!_data.CldrLanguageData.TryGetValue(language, out var data))
                {
                    data = new CldrLanguageData();
                    _data.CldrLanguageData.Add(language, data);
                }
                return(data);
            }
        }
Exemplo n.º 2
0
        private CldrLanguageData GetLangData(string language)
        {
            language = language.ToLowerInvariant();

            lock (_locker)
            {
                CldrLanguageData data;
                if (!_data.CldrLanguageData.TryGetValue(language, out data))
                {
                    data = new CldrLanguageData();
                    _data.CldrLanguageData.Add(language, data);
                }
                return data;
            }

            
        }