Example #1
0
        private static LanguageInfoAttribute GetLanguageInfoAttribute(IsoLanguage language)
        {
            var languageName = Enum.GetName(LanguageType, language);

            return(LanguageType.GetField(languageName)
                   .GetCustomAttributes(false)
                   .OfType <LanguageInfoAttribute>()
                   .SingleOrDefault());
        }
Example #2
0
        public static string GetIsoPart2Bibliographic(IsoLanguage language)
        {
            var attribute = GetLanguageInfoAttribute(language);

            return(attribute.IsoPart2Bibliographic);
        }
Example #3
0
        public static string IsoPart2Terminological(IsoLanguage language)
        {
            var attribute = GetLanguageInfoAttribute(language);

            return(attribute.IsoPart2Terminological);
        }
Example #4
0
        public static string GetIsoPart1(IsoLanguage language)
        {
            var attribute = GetLanguageInfoAttribute(language);

            return(attribute.IsoPart1);
        }