public static string GetDefaultExtensionValue(string key) { Guard.ArgumentNotNull(key, "key"); switch (key) { case "hc": return(IntlProviderOptions.ToStringValue(CldrUtility.GetDefaultHourCycle(IntlContext.RegionCode))); case "ca": foreach (string type in CldrUtility.GetPreferredCalenderTypes(IntlContext.RegionCode)) { if (SupportedCalendars.ContainsKey(type)) { return(type); } } break; } if (SupportedValues.ContainsKey(key)) { return(SupportedValues[key][0]); } return(null); }