private static LanguageInfoAttribute GetLanguageInfoAttribute(IsoLanguage language) { var languageName = Enum.GetName(LanguageType, language); return(LanguageType.GetField(languageName) .GetCustomAttributes(false) .OfType <LanguageInfoAttribute>() .SingleOrDefault()); }
public static string GetIsoPart2Bibliographic(IsoLanguage language) { var attribute = GetLanguageInfoAttribute(language); return(attribute.IsoPart2Bibliographic); }
public static string IsoPart2Terminological(IsoLanguage language) { var attribute = GetLanguageInfoAttribute(language); return(attribute.IsoPart2Terminological); }
public static string GetIsoPart1(IsoLanguage language) { var attribute = GetLanguageInfoAttribute(language); return(attribute.IsoPart1); }