示例#1
0
 private EraDescription GetEraDescription(Era era)
 {
     if (!eraDescriptions.TryGetValue(era, out EraDescription ret))
     {
         ret = EraDescription.ForEra(era, CultureInfo);
         eraDescriptions[era] = ret;
     }
     return(ret);
 }
示例#2
0
 private EraDescription GetEraDescription(Era era) => eraDescriptions.GetOrAdd(era, key => EraDescription.ForEra(key, CultureInfo));