/// <summary>
 /// Gets the competitor's abbreviation in the specified language or a null reference
 /// </summary>
 /// <param name="culture">A <see cref="CultureInfo" /> specifying the language of the abbreviation</param>
 /// <returns>The competitor's abbreviation in the specified language or a null reference</returns>
 public string GetAbbreviation(CultureInfo culture)
 {
     // no need to call GetOrLoadCompetitor() since already called before populating dictionary
     return(Abbreviations.ContainsKey(culture)
         ? Abbreviations[culture]
         : null);
 }
Пример #2
0
 /// <summary>
 /// Gets the competitor's abbreviation in the specified language or a null reference
 /// </summary>
 /// <param name="culture">A <see cref="CultureInfo" /> specifying the language of the abbreviation</param>
 /// <returns>The competitor's abbreviation in the specified language or a null reference</returns>
 public string GetAbbreviation(CultureInfo culture)
 {
     return(Abbreviations.ContainsKey(culture)
         ? Abbreviations[culture]
         : null);
 }