Kartverket.MetadataEditor.Models.MetadataService.CreateDictionaryOfEnglishKeywords C# (CSharp) Méthode

CreateDictionaryOfEnglishKeywords() private méthode

private CreateDictionaryOfEnglishKeywords ( List keywords ) : string>.Dictionary
keywords List
Résultat string>.Dictionary
        private Dictionary<string, string> CreateDictionaryOfEnglishKeywords(List<SimpleKeyword> keywords)
        {
            Dictionary<string, string> englishKeywords = new Dictionary<string, string>();
            foreach (var keyword in keywords)
            {
                if (!string.IsNullOrWhiteSpace(keyword.EnglishKeyword))
                {
                    englishKeywords.Add(keyword.GetPrefix() + "_" + keyword.Keyword, keyword.EnglishKeyword);
                }
            }
            return englishKeywords;
        }