Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetCultureInfo() [1/4]

static CultureInfo System.Globalization.CultureInfo.GetCultureInfo ( int culture)
inlinestatic

Definition at line 775 of file CultureInfo.cs.

776 {
777 if (culture <= 0)
778 {
779 throw new ArgumentOutOfRangeException("culture", SR.ArgumentOutOfRange_NeedPosNum);
780 }
784 {
786 {
787 return value;
788 }
789 }
790 try
791 {
793 {
794 _isReadOnly = true
795 };
796 }
797 catch (ArgumentException)
798 {
799 throw new CultureNotFoundException("culture", culture, GetCultureNotSupportedExceptionMessage());
800 }
802 {
804 return value;
805 }
806 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
static string GetCultureNotSupportedExceptionMessage()
static Dictionary< int, CultureInfo > CachedCulturesByLcid

References System.Globalization.CultureInfo.CultureInfo(), System.Globalization.CultureInfo._isReadOnly, System.SR.ArgumentOutOfRange_NeedPosNum, System.Globalization.CultureInfo.CachedCulturesByLcid, System.culture, System.Globalization.CultureInfo.GetCultureNotSupportedExceptionMessage(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Globalization.CultureInfo.CultureInfo(), System.Globalization.CalendarData.GetCalendarCurrentEra(), System.Globalization.CompareInfo.GetCompareInfo(), System.Globalization.CompareInfo.GetCompareInfo(), System.Globalization.CultureInfo.GetCultureInfo(), System.Globalization.CultureInfo.GetCultureInfoByIetfLanguageTag(), System.Reflection.RuntimeAssembly.GetLocale(), System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(), System.Globalization.CultureData.IcuEnumCultures(), System.Globalization.TextInfo.NeedsTurkishCasing(), System.Globalization.CompareInfo.OnDeserialized(), System.Globalization.CompareInfo.OnSerializing(), System.Globalization.TextInfo.PopulateIsAsciiCasingSameAsInvariant(), and System.Data.SqlTypes.SqlString.SetCompareInfo().